I am using Manual Load on demand to bind the Data to WebHierarchical Grid.
The grid consists of 7 columns.
It consists of more than one level.When I expand the parent grid i will bind the child grid.
I want the Same CSS to be applied for all the columns even I expand the parent grid.
Actually when I expand the parent grid,the columns are distorted .
I want the fixed header for all the levels in Webhierarchical grid for more than one level in manual load on demand.
Is it is possible?
Thanks
Charan
Hi Charan,
Thank you for posting in our community.
You should be able to style child and parent columns with the same classes. In order to be more specific I would need to know which classes you want to style. You can find a very detailed guide for WebDataGrid styling which also applies for the WHDG at:
http://blogs.infragistics.com/blogs/engineering/archive/2010/08/25/webdatagrid-css-styling-guide.aspx
Regarding your question about fixed headers: when you are scrolling the whole grid only the root bands headers will be fixed. However, you can set the width of you child container. If there is an overflow due to the number of children, a scroller will be shown in the child container and its headers will be fixed.
For instance:
protected void WebHierarchicalDataGrid1_RowIslandsPopulating(object sender, Infragistics.Web.UI.GridControls.ContainerRowCancelEventArgs e) { e.Cancel = true; ContainerGrid grid = new ContainerGrid(); e.Row.RowIslands.Add(grid); grid.DataSourceID = SqlDataSource1.ID; grid.DataBind(); grid.Height = 200; }
Here is a pic illustrating such a configuration.
Please let me know if you need further assistance.
Best Regards,Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://www.infragistics.com/support
Actually When I expand the Parent grid,the child grid columns are moving to right,I want all the parent and child columns to be fixed.
So what is the css I have to apply so that I can show the parent grid columns,child grid columns vertically without moving to right.
Please find the sample image,I don't want the child grid columns to be moved right.
I am using Manual load on demand to bind the WebHierarchical grid. I am binding the columns emp_Id,supervisor_id to both the parent and child grid.I am showing the single header Emp_id,Supervisor_Id for both parent and child grid,when i expand the parent grid,the child grid must be shown behind the parent grid(straight),it must not move right as shown in the image.
I am using + icon to expand and - icon to collpase.
Hi induricharan,
I have created a sample for you demonstrating a WHDG without no indentation for the child bands. Please let me know if this is what you are looking for.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://www.infragistics.com/support
I will be showing the child grid without header,I will be having more than one level for the child grid,I set childgrid.showheader=false,so I want the child grid columns values to be shown exactly under the parent grid column header without indentation,the styles u suggested are not working for the child grid column values.So what are the styles i have to apply for all the child grid.I will be having more than one level for the parent grid.
I have modified my sample for your requirements. The Northwind DB is used this time to build 3 levels in the WHDG. I have overriden the igg.Controls CSS class and created a igg.Controls.custom class for the parent band so only the parent band has borders.
The first child band has no indentation, however the second child band has default indentation so its columns and data are appearing directly beneath the parent.
Here is an image of what a parent row with fully expanded children looks like with this setup:
Feel free to contact me if you have any questions.
Hi,
I too was looking out for the same thing, thanks for the help,
But for me this solution didnt work well, since,
what i need is that the first column should have the indent to show its a child of the previous row and the rest of the columns should be aligned to the parent.
Is it possible to do that?
Cheers,