Hi,
I have been recently using WebHierarchical Data grid (version 11.1) and i have implemented the expand and collapse in the grid. But i need to collapse the row automatically. Is there any option for auto expand row?
I am having the exact same issue.
I have tried CollapseAll() from within Page_Load, Page_PreRender and Button_Click methods. I have also tried putting both the grid and the button in an UpdatePanel, but still have had no success.
I am also unable to find any reference anywhere showing this function in client-side script.
Hello Aditya ,
I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Thank you for your feedback. However please refer to our support policies where you’ll find the average response time for the different service levels :
http://ko.infragistics.com/help/support-policies/
For non-paid customer we do not have a guaranteed response time for the moment. It seems that you have no ongoing subscriptions connected to your account right now. If you’re interested in purchasing one so that you could take advantage of the support benefits please feel free to contact our sales department: http://ko.infragistics.com/about-us/contact-us/
Regarding your specific question.You should set :grid.InitialExpandDepth =0; before you’ve data bound the grid to its data source. It will only determine how many levels will be expanded on the initial load of the page. The grid will retain the expanded/collapsed state of the rows after postbacks.
You can set the CollapseAll() method in any event prior or during the Page_PreRender event.
For example refer to the attached sample where on the “Collapse All“ button click all expanded rows are collapsed using that method. Let me know if you have any questions.
Developer Support Engineer II
i think infragistic support is not good . i posted 4-5 times but no reply in last 10 days....
i tried both . none of these working.....
1. InitialExpandDepth =0;
2. CollapseAll();
both not working in my case...
tell me in which event it should be write?
Hello Adity ,
Thank you for posting in our forum.
You can use the InitialExpandDepth property of the grid to determine how many levels of it should be expanded on the initial load. If you want all of them to be collapsed set that property to “0”.
There’s more information on this property here:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=Infragistics4.Web.v11.1~Infragistics.Web.UI.GridControls.WebHierarchicalDataGrid~InitialExpandDepth.html
If you need to expand or collapse all rows manually on some event you can use the grid’s ExpandAll() or CollapseAll() method of the grid: For example:
this.WebHierarchicalDataGrid1.ExpandAll();
this.WebHierarchicalDataGrid1.CollapseAll();
Let me know if you have any questions or concerns.