Column position changed event is not longer existing?!?

2 posts, 0 answers
  1. Stephan Neumann
    Stephan Neumann avatar
    2 posts
    Member since:
    Sep 2008

    Posted 06 May 2015 Link to this post

    What is the event for "column posion changed"?

    Up to now I used ColumnIndexChanged in oder version of telerik or CollectionChanged event in newer telerik verion. But this event is no longer existing ?!?


  2. Ralitsa
    Ralitsa avatar
    185 posts

    Posted 08 May 2015 Link to this post

    Hi Stephan,

    Thank you for contacting us. 

    The ColumnIndexChanged event is removed since Q2 2014. You need to subscribe to the CollectionChanging event which is fired before an item is added, removed, changed, moved, or the entire list is refreshed. Please take a look at the following code example: 
    //subscribe to the CollectionChanging event
    radGridView1.MasterTemplate.Columns.CollectionChanging += Columns_CollectionChanging;
    //handle the event
    void Columns_CollectionChanging(object sender, Telerik.WinControls.Data.NotifyCollectionChangingEventArgs e)
        if (e.Action == NotifyCollectionChangedAction.Move)
            e.Cancel = true;

    Should you have further questions, I would be glad to help.

    See What's Next in App Development. Register for TelerikNEXT.

Back to Top