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

SelectionChanging Event occurs without click onto the row

4 Answers 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard Koslik
Top achievements
Rank 1
Richard Koslik asked on 24 Apr 2012, 03:01 PM
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

4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 25 Apr 2012, 09:40 AM
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 >>

0
xu
Top achievements
Rank 1
answered on 19 Sep 2012, 12:20 PM

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!

0
Accepted
Dimitrina
Telerik team
answered on 19 Sep 2012, 01:39 PM
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.

0
xu
Top achievements
Rank 1
answered on 20 Sep 2012, 12:03 AM
Yes, it worked, but the drag selection is disabled now. Any way, thank you!
Tags
GridView
Asked by
Richard Koslik
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
xu
Top achievements
Rank 1
Share this question
or