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

How to collapse/expand a group of sub-columns?

3 Answers 124 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 04 Apr 2011, 03:51 PM
Hi

I am working on a new project using Telerik ASP.NET AJAX controls and one of the requirements is to be able to dispaly columns in a group and be able to collapse/expand the group using a +/- button for example. I already created a group inside a table using GridTemplateColumn type but was wondering if there is a better way to acheave this with collapse/expand ability while not losing the sort and resize ability.

I apprecaite your help in advance
Ron Farko

3 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 07 Apr 2011, 12:49 PM
Hello Ron,

Could you give more details on the grouping functionality that you have in mind as I was not able to grasp what exactly your requirement is. As far as I understand it is different than the out-of-the-box grouping feature of RadGrid. 

Regards,
Tsvetoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ron
Top achievements
Rank 1
answered on 08 Apr 2011, 08:36 PM
hi Tsvetoslav

Thanks for the reply. What I meant by grouping is column grouping not row grouping. Basically I need to build a grid which each column in the grid has few sub-columns for example:

column 1: Date (simple bound column)
column 2: Checking Account with sub-columns: Starting Balance, Ending Balance (could be a Template Column)
column 3: Saving Account with sub-columns: Starting Balance, Ending Balance (could be a Template Column)
...

I also need the following functionalities on this grid:
  • ability to sort on each sub-column
  • ability to move the entire column (column reorder)
  • ability to resize at column level (not sub-columns)
  • but most importantly I'd like to have a [+/-] button (expand/collapse) next to the top header of each column and when I click to collapse it only should show one value in the column (say Ending Balance) and when click again it expands it should show all the sub-columns.

Hope this explains what I am looking for.

Regards
Ron

0
Tsvetoslav
Telerik team
answered on 12 Apr 2011, 07:04 AM
Hello Ron,

Such a scenario is not supported by RadGrid. The furthest you can go (as you have correctly guessed) is demonstrated in the following online example and the related help topic:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/grdcustomizewithgridtemplatecolumn.html 

All the best,
Tsvetoslav
the Telerik team

Browse the vast support resources we have to jump start 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
Ron
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Ron
Top achievements
Rank 1
Share this question
or