Attached test01 project and I need you to help me with the following :
Currently when UnoHGrid.aspx is run and Tab2 is chosen you would see a hierarchical grid
With all child grid collapsed. While I am aware of the InitialExpandDepth="1"
property that would expand all child grids when they got initialized, it does not work in my production project that has seven tabs and lots of controls and truck load data from the sql server.. I cannot send it and if I take the page and remove all db dependencies it started to work.
Here what I need you to show me how I can expand child grid programmatically .. on the grid initialization event and on the tab activation. so the user would see the grid expanded on the opening… (Claymation & defaults removed bc of the size)
What I can suggest to address your requirements is that you subscribe for the Load event of either the WebHierarchicalDataGrid or the TabItem (or even the RowInitialize) and then go through the parent rows and expand them if they have children. The code should look similar to the following:
protected void grid_Load(object sender, EventArgs e)
foreach (ContainerGridRecord parentRow in grid.GridView.Rows)
parentRow.Expanded = true;
Please, review this approach and let us know if you need further assistance on this matter.
Yes, please show how it works on my sample project.. thanks.
I can not find ContainerGridRecord type .. so please add all to my sample project to reduce time spent...
I figure it out .. full qual path was needed.. Infragistics.Web.UI.GridControls.ContainerGridRecord ..
Here is my issue : it still does not expand children because at the time of load event databind have not happened.. it is done on the postback.. can you show me how to expand children right after databind occurred.. please show on my test project.. thanks.
never mind, added DataBound and it did it.. thanks