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.