SelectionChanging Event occurs without click onto the row

5 posts, 1 answers
  1. Richard Koslik
    Richard Koslik avatar
    71 posts
    Member since:
    Apr 2010

    Posted 24 Apr 2012 Link to this post

    Hello!

    I have a RadGridView on the left side as overview of my data and on the right side i display the SelectedItem (for Editing). The SelectionMode = EXTENDED and SelectionUnit = FullRow.

    In the SelectionChanging Event I check if the data is edited, show a message box ("You have to save your data first") and set e.Cancel=true.

    Now to my problem: I select one item in my grid and edit the data on the right side. If I go now with my mouse cursor onto the RadGrid WITHOUT clicking (only MOVE) the SelectionChangingEvent with my messagebox everytime is fired!

    Why? It occours only in this scenario. Do I have to disable or check something else?

    best regards,
    Richard Koslik
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 25 Apr 2012 Link to this post

    Hi Richard Koslik,

     I was not able to see such a problem locally and at our online demos. Do you get this issue with the latest binaries?

    All the best,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. xu
    xu avatar
    14 posts
    Member since:
    Feb 2012

    Posted 19 Sep 2012 Link to this post

    HI, Didie

    I got the same problem, If you pop up a RadWindow in the SelectionChanging event, and after it closed, the selection will never end untill you click on the gridview again.

    I'm using the latest binaries, and there is even no SelectionChanging event handler on the gridview in the demo you  gave,  I think that's why you can't see the problem.

    Hope for your response as soon as possible!

  5. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 19 Sep 2012 Link to this post

    Hello,

     May I ask you to set the DragElementAction property of the RadGridView to "None" and let me know if this resolves the problem.

    Greetings,
    Didie
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

  6. xu
    xu avatar
    14 posts
    Member since:
    Feb 2012

    Posted 19 Sep 2012 Link to this post

    Yes, it worked, but the drag selection is disabled now. Any way, thank you!
Back to Top
DevCraft banner