Handling reorder event

5 posts, 0 answers
  1. DenisCL
    DenisCL avatar
    69 posts
    Member since:
    Dec 2009

    Posted 08 Dec 2010 Link to this post

    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.
  2. DenisCL
    DenisCL avatar
    69 posts
    Member since:
    Dec 2009

    Posted 08 Dec 2010 Link to this post

    Well, basically achieved with grid ColumnReordering event.

    But is there a way to programmatic display a "DropImpossible" cue template ?
  3. DevCraft banner
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 11 Dec 2010 Link to this post

    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
  5. DenisCL
    DenisCL avatar
    69 posts
    Member since:
    Dec 2009

    Posted 13 Dec 2010 Link to this post

    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).
  6. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 16 Dec 2010 Link to this post

    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
Back to Top
DevCraft banner