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

Collapse after grouping

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Celeste
Top achievements
Rank 1
Celeste asked on 29 Nov 2010, 10:28 PM
Dear Forum,

I have a RadGrid with drag-and-drop grouping enabled and a default top level grouping set. I'm using the Q1 2010 build with VS2008 and ASP.net 3.5 C#.

I collapsed all to the top level grouping using the example from
http://www.telerik.com/help/aspnet-ajax/grdcollapseallitemsongrouping.html

What I would like to do is to collapse all groups except for the last group the client selects each time the client drags and drops a new group to the group by bar.

Does anyone have an example of this or can anyone point me in the right direction.

Thank you,
Celeste

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvetina
Telerik team
answered on 02 Dec 2010, 04:41 PM
Hello Celeste,

There is already a property exposed to provide you with default collapsing of the groups in RadGrid - GroupsDefaultExpanded="false" will collapse all groups when loaded. Also, is the last group visible on the page when you are grouping? If so, you can try to expand the needed group in the ItemDataBound event of RadGrid.

Best wishes,
Tsvetina
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Celeste
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or