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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Expand works fine, collapse does not.

Thread ID:





55528 Jan 31,2007 04:37 PM UTC Jun 14,2007 06:52 PM UTC WinForms 5
Tags: Grouping
Geetha Krishnamurthy
Asked On January 31, 2007 04:37 PM UTC

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

>>>>>>>> Code Snippet 1<<<<<<<<<<
// Expand the groups

// Collapse the groups

Nested Tables:
>>>>>>>> Code Snippet 2<<<<<<<<<<
// Expand the records
// Collapse the records

Kindly let us know if you need any further assistance.
Have a nice day.

Best regards,

Replied On February 5, 2007 08:45 PM UTC

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

Administrator [Syncfusion]
Replied On 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.
//Collapse all records in a grid.

Best regards,

James Blibo
Replied On 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.

Rajagopal [Syncfusion]
Replied On 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;

Kindly try the above suggestion and let me know if this helps.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon