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

Handling reorder event

4 Answers 58 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
DenisCL
Top achievements
Rank 1
DenisCL asked on 08 Dec 2010, 04:57 PM
Hi,

I'm trying to block reordering of a gridview column.

In my sample, I've three columns. The first one got IsReorderable = false. Others are true.
But I can move the second and the third column at the first index, and I want to block that because this is a sort of reordering the initial first column.

I've inspected the DropInfo and DragInfo to the grid, and I can see the e.Options.Payload containing something called :
Telerik.Windows.Controls.GridView.HeaderCellReorderOptions;
having my informations : CurrentDisplayIndex and InitialDisplayIndex.

But I'm unable to cast the object with this type, and play with them.

Any idea ?
Thanks.

4 Answers, 1 is accepted

Sort by
0
DenisCL
Top achievements
Rank 1
answered on 08 Dec 2010, 05:12 PM
Well, basically achieved with grid ColumnReordering event.

But is there a way to programmatic display a "DropImpossible" cue template ?
0
Maya
Telerik team
answered on 11 Dec 2010, 03:42 PM
Hello DenisCL,

You may take a look at this forum thread as well as this help article for a reference.  
I hope that helps.

Kind regards,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
DenisCL
Top achievements
Rank 1
answered on 13 Dec 2010, 02:30 PM
Well, they discribes what I've done with the ColumnReordering event.
Basically, I want to have the class Telerik.Windows.Controls.GridView.HeaderCellReorderOptions public, so I can handle the reordering possibility before the user drop the column (during the DropInfo).
0
Maya
Telerik team
answered on 16 Dec 2010, 02:29 PM
Hi DenisCL,

May you specify what is the purpose you want the above mentioned class to be public ? How do you want to use it ? Furthermore, may you provide a bit more details about your scenario ? Are the links not helpful ?
Any relevant information about your settings, the ColumnReorderOptions, etc. will be useful.
 

Regards,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
DragAndDrop
Asked by
DenisCL
Top achievements
Rank 1
Answers by
DenisCL
Top achievements
Rank 1
Maya
Telerik team
Share this question
or