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

Custom column group layout with column group reordering

5 Answers 67 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.
Eric
Top achievements
Rank 1
Eric asked on 31 Aug 2012, 07:42 PM
I was wanting to know if it is possible to have a column group layout like below and be able to drag the column group as a whole to reorder the columns while disabling reorder for columns within the group. If it is can you provide an example?

|         GROUP HEADER      |                         |                         |                          |
|                                           |    COLUMN 3   |   COLUMN 4     |   COLUMN 5     |
|  COLUMN 1  |  COLUMN 2 |                         |                         |                          |

Basically I want to have the two grouped columns to behave as one for header purposes but two for data entry purposes with the caveat that column 1 and 2's headers grow and shrink with the data for the column as they do normally.

5 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 03 Sep 2012, 06:15 AM
Hi Eric ,

For the time being RadGridView does not yet support batch reordering of more than one column via dragging a common header.

Greetings,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Eric
Top achievements
Rank 1
answered on 04 Sep 2012, 11:41 AM
Ok, is the proposed layout at least possible? If it is can you provide an example?

Thanks,
Eric
0
Pavel Pavlov
Telerik team
answered on 07 Sep 2012, 09:24 AM
Hi Eric ,

Yes the layout is possible . I am attaching a small runnable project that would render the exact layout you have described.

All the best,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Eric
Top achievements
Rank 1
answered on 07 Sep 2012, 02:37 PM
Thank you for the example however the layout isn't exactly what I was asking for.

I'm not wanting to do the standard column group header. I want the Group header for columns 1 and 2 to be inline with columns 3,4 and 5 and for those columns to not have a group header at all.

So the result is columns 1 and 2 have a header but 3, 4 and 5 do not and the over grid header hight is not increased.

Please let me know if you have questions or need additional information.
0
Pavel Pavlov
Telerik team
answered on 07 Sep 2012, 04:03 PM
Hello Eric,

I understand . Unfortunately this is as close as we can get.

Still there is an alternative I should mention - have you thought of showing data form columns 1 and 2 in a single column ( with a templated cell to contain two TextBlocks) ?

Regards,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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