This is a migrated thread and some comments may be shown as answers.

[Solved] Grouping Collapse/Expand issue

4 Answers 144 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jack
Top achievements
Rank 1
Jack asked on 25 May 2009, 09:24 PM
If I manually collapse all groups except one, and then sort by a column, all the groups open again.

Is that the expected behavior?  It would be nice if it would just sort behind the scenes and essentially just display the re-sorted expanded group.

I imagine I could do it in code but I don't really want to have it re-sort, expand, and collapse again.

thanks

jack

4 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 29 May 2009, 12:54 PM
Hi Jack,

Unfortunately this is the "by design " behavior of RadGridView so far. We are planning some improvements for future releases including persistence of the expanded/collapsed state.

Meanwhile the best you can do is to restore the collapsed/expanded state within the

 

RadGridView.SortDescriptions.CollectionChanged event. In case you have any trouble with this approach , let me know.

Regards,

Pavel Pavlov
the Telerik team

 


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jack
Top achievements
Rank 1
answered on 29 May 2009, 01:43 PM
Pavol,

I'll give that a whirl but just off the top of you head is there a way to do it that avoids the visuals?  Where in the sequence of events does the RadGridView.SortDescriptions.CollectionChanged happen?

Am I going to see the groups expand and collapse on the screen or is there a way to do it such that I don't?

thanks

jack
0
Pavel Pavlov
Telerik team
answered on 01 Jun 2009, 02:48 PM
Hello Jack,
I have made a small research. Unfortunately  I could not find a really good solution to the problem
I have added the persistence of expanded/collapsed state when sorting in our 'To Do' list for the Q2 release.

All the best,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jack
Top achievements
Rank 1
answered on 01 Jun 2009, 03:04 PM
thanks for the efforts.  It saved me some time which is all I can ask for. 

For the time being I guess I'll just back off on using the grid for what I planned and use a tree / detail view.  I'll leave the users the options of fireing off a popup window with the grid so they can play / sort but it will be bonus information for them.

I'll have a look come Q2 beta or release

thanks

jack
Tags
GridView
Asked by
Jack
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Jack
Top achievements
Rank 1
Share this question
or