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

Group exapand / collapse columns

2 Answers 192 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jake
Top achievements
Rank 1
Jake asked on 19 Mar 2008, 03:48 PM
Hi -

My apologies if this is covered elsewhere, but after wading through RadGrid and API documentation I'm still left puzzled...

I'm trying to better understand group expansion and collapsing.

First, what is the <ExpandCollapseColumn> item for in the <MasterTableView> section? By default, even with grouping enabled, its "Visible" property is set to false - yet the ExpandCollapseColumn is still visible. Why? (I'm assuming - perhaps wrongly - that the ExpandCollapseColumn is the column with the "+" or "-" image in it.)

So how do I hide the ExpandCollapseColumn? I've read about how others have hidden the image in the column, but how do you just remove/hide the whole column?

My second question is about two items in the <Columns> section of <MasterTableView>: What are <telerik:GridExpandColumn> and <telerik:GridGroupSplitterColumn> used for?
(And therefore how does <telerik:GridExpandColumn> differ from the <ExpandCollapseColumn> outside the <Columns> section?)

Many thanks,

Jake.

2 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 24 Mar 2008, 12:40 PM
Hi Jake,

The expand/collapse column is used for hierarchical grid and represents the first column in the grid in such case. When you enable the grouping feature of the control the grid will add automatically GridGroupSplitterColumn to its structure:

http://www.telerik.com/help/radcontrols/prometheus/?grdColumnTypes.html (see the last paragraph of this documentation article)

I assume that the information from the article answers your second question as well. The GridExpandColumn from the Columns collection of the control is exposed if you would like to add an additional expand/collapse column. How to hide the GridGroupSplitterColumn in grouped grid you can learn from this resource.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jake
Top achievements
Rank 1
answered on 24 Mar 2008, 04:55 PM
Hi Stephen,

Thank you very much for your reply... that article was exactly what I needed! (I had previously only found the documentation for each individual type of column, which seems to be missing these summary descriptions...)

I'll try using the code to hide the image, although what I actually want to do is hide the entire column... perhaps setting its width to 1px or 0px in effect achieves this... I'll give it a go, thanks!
Tags
Grid
Asked by
Jake
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Jake
Top achievements
Rank 1
Share this question
or