We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Expand works fine, collapse does not.

Thread ID:

Created:

Updated:

Platform:

Replies:

55528 Jan 31,2007 11:37 AM Jun 14,2007 02:52 PM Windows Forms 5
loading
Tags: Grouping
Geetha Krishnamurthy
Asked On January 31, 2007 11:37 AM

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...

Administrator [Syncfusion]
Replied On February 2, 2007 04:16 PM

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

gkrish
Replied On February 5, 2007 03:45 PM

Yes I tested the code, it is still the same.. Expand works fine, collapse doesnt do nothing.

Administrator [Syncfusion]
Replied On February 6, 2007 04:52 PM

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

James Blibo
Replied On June 14, 2007 12:06 AM

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.

Rajagopal [Syncfusion]
Replied On June 14, 2007 02:52 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;