I tried both the events expandAll and collapseAll from HierarchySample_2005, expand all works just fine on my grouping grid 4.3 where as collapse does nothing. Any reason, is there something I will have to do for collapse to work on mu grid...
AD
Administrator
Syncfusion Team
February 2, 2007 09:16 PM UTC
Hi Gkrish,
Thank you for being patience.
Please re-check for the methods being called. The following code snippets show the ways to collapse and expand groups and records.
Groups:
>>>>>>>> Code Snippet 1<<<<<<<<<<
// Expand the groups
this.gridGroupingControl1.Table.ExpandAllGroups();
// Collapse the groups
this.gridGroupingControl1.Table.CollapseAllGroups();
>>>>>>>>>>>>>>><<<<<<<<<<<<<
Nested Tables:
>>>>>>>> Code Snippet 2<<<<<<<<<<
// Expand the records
this.gridGroupingControl1.Table.ExpandAllRecords();
// Collapse the records
this.gridGroupingControl1.Table.CollapseAllRecords();
>>>>>>>>>>>>>>><<<<<<<<<<<<<
Kindly let us know if you need any further assistance.
Have a nice day.
Best regards,
Madhan
GK
gkrish
February 5, 2007 08:45 PM UTC
Yes I tested the code, it is still the same.. Expand works fine, collapse doesnt do nothing.
AD
Administrator
Syncfusion Team
February 6, 2007 09:52 PM UTC
Hi Gkrish,
Here is a code snippet that shows you "How to collapse all groups and records in a grid?".
//Collapse all groups in a grid.
this.groupingGrid1.Table.CollapseAllGroups();
//Collapse all records in a grid.
this.groupingGrid1.Table.CollapseAllRecords();
this.groupingGrid1.Table.CollapseAllGroups();
Best regards,
Haneef
JB
James Blibo
June 14, 2007 04:06 AM UTC
This is the same issue that i posted about a few hours ago, expand works fine, collapse doesn't. It's frustrating that you all haven't experience this issue on your end but you still post the same solutions as if you all don't believe that expand really doesn't work. I can't post my code because the code is part of a larger project and the issue may not be reproducable if i create a smaller project.
RA
Rajagopal
Syncfusion Team
June 14, 2007 06:52 PM UTC
Hi James,
Please try setting the Table.CurrentElement to null before the calling the CollapseAllGroups() method.
this.gridGroupingControl1.Table.CurrentElement = null;
this.gridGroupingControl1.Table.CollapseAllRecords();
this.gridGroupingControl1.Table.CollapseAllGroups();
Kindly try the above suggestion and let me know if this helps.
Regards,
Rajagopal