I try to expand all rows from server side, I've tried this <ig:WebHierarchicalDataGrid ID="whDataGrid1" runat="server" oninit="webHierarchicalDataGrid_Init" InitialDataBindDepth="-1" InitialExpandDepth="-1">
but i doesn't work, I use version 10.2
Hi quantom,
Thank you for posting in the community.
I have just tested your scenario by binding the WHDG to a WHDataSource and DataSet from the code-behind using version 10.2.20102.1010 and all the child rows seem to be expanded correctly on page load. Can you please provide your grid markup and any relevant server-side code and the exact version of .NetAdvantage that you are using.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support
Version=10.2.20102.1011
The following parameters are set inside the control's init event
var grid = sender as WebHierarchicalDataGrid;
grid.Width = new Unit("100%"); grid.IsSelfReference = true; grid.MaxDataBindDepth = 2; grid.AutoGenerateBands = false; var gs = grid.GroupingSettings; gs.ShowBandInGroupByArea = false;
the grid is binded to a dynamic selfreferenced WebHierarchicalDataSource
and the DataKeyFields of the grid contains 2 keys.
It all works well expand and collapse well from the browser, however it is always started collapse no matter what I do, I've try setting these two properties of the grid to -1 in many places as well as in the asp.net form as I sent before, with the same results.
Thank you for your reply.
Can you also provide me with your grid markup as after setting my grid with the properties shown above I am yet unable to replicate the behavior using version 10.2 under Mozilla 8, IE8 and Chrome. A sample page illustrating the matter would be greatly appreciated and would allow me to investigate the issue in further detail.
Please feel free to contact me if you are still experiencing any issues.
I am attaching a sample demonstrating your scenario (the Northwind Employee table is used to create the self-reference. Please let me know if this sample works for you.
Ok, thank you for your help with the other thread, I'm still having problems with expanding all rows, I can produce a scenario with static columns to work, but I can't produce it to work with auto created columns and bands using dynamic WebHierarchicalDataSource.
Can you provide a working example ?
I have attended to your question in your other thread. Please feel free to contact me with any questions and updates regarding initial row expansion.
I will, but first I would like to solve a preceding problem that might solve this one as well, it is described in this post I send:
http://community.infragistics.com/forums/p/63039/319317.aspx#319317
which has not been replied for some reason.