SelectionChanging Event problem after update.

2 posts, 0 answers
  1. Felipe
    Felipe avatar
    1 posts
    Member since:
    Jun 2014

    Posted 19 Feb 2015 Link to this post

    Hello,

    I did an update on my Telerik WinForms from 2013 Q3 to 2014 Q3.

    And here is what happened:

    There was a lot of SelectionChanging events on my grids and they were called like this:

    private void gridXml_SelectionChanging(object sender, CancelEventArgs e)
    {
          DoSomething();
    }

    And after the update I noticed that all my grids had lost their SelectionChanging event and I couldn't select the events that I used before.

    So I created a new SelectionChanging and noticed that it had a different parameter:

    private void gridXml_SelectionChanging(object sender, Telerik.WinControls.UI.GridViewSelectionCancelEventArgs e)
    {

    }

    Now I changed all my old SelectionChanging to this new one.

    What I want to know if this happened because of the big gap on my updates or if it would have happened anyway on the version that this changed.

    Thanks.


  2. Hristo Merdjanov
    Admin
    Hristo Merdjanov avatar
    710 posts

    Posted 24 Feb 2015 Link to this post

    Hello Felipe,

    Thank you for writing.

    This is an improvement which was introduced in our Q2 2014 (version 2014.2.617) release. From then on, the GridViewSelectionCancelEventArgs keeps delivering information about the current selection and the new selection. You can refer to the release notes for more information.

    This change has nothing to do with the big gap between your updates, it would have happened anyway when the improvement got introduced.

    I hope this helps. Should yo have further questions please do not hesitate to write back.

    Regards,
    Hristo Merdjanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top