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

Drag Colums Grouped View

2 Answers 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ManniAT
Top achievements
Rank 2
ManniAT asked on 28 Oct 2012, 08:09 AM
Hi,

I have a grid with servere Column Groups.
-- "Base Product" "End Product" "Sales"
And the user is enabled to drag columns.
My problem - the user can now drag the column "Number of items" from Sales to "somewhere".

This results in a "splitted group header".

Is there a (simple) way to restrict dragging of a column within a column group?

And just another question - how can I place text on the default loading indicator?
I found no template for it - and also no property like "Loading content" or so.
All I want to do is to place a text "Loading Items please be..." on the indicator.

Manfred

2 Answers, 1 is accepted

Sort by
0
Accepted
Yoan
Telerik team
answered on 01 Nov 2012, 01:25 PM
Hello Manfred,

About your first question:

In order to control the reordering of the RadGridView's columns, you can subscribe to the ColumnReordering event and add some logic in the code behind. Check this forum post for reference. Although it is for Silverlight, the approach is similar and you can get an idea from it. In your case, you can check Column's group and cancel the reordering when you try to reorder a column to a different Column group. 

About your second question:

In order to achieve your goal, you can predefine the GridViewLoadingIndicator's template. Please find attached sample project showing you the approach.

Greetings,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
ManniAT
Top achievements
Rank 2
answered on 04 Nov 2012, 05:40 PM
Thank you for the quick response.
The Loading Template works like a charm.

And the "drag problem solution" is a least a workaround.
It's missing "visual feedback" - so the user can drag where he wants - finding out that he can't drop AFTER dropping.
Anyhow - it is good enough and the users will get used to it.

Manfred
Tags
GridView
Asked by
ManniAT
Top achievements
Rank 2
Answers by
Yoan
Telerik team
ManniAT
Top achievements
Rank 2
Share this question
or