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

Selection Changed event of GridView is firing on Mouse Over...??

7 Answers 254 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.
Nikhil Thaker
Top achievements
Rank 1
Nikhil Thaker asked on 29 Dec 2010, 07:55 AM
Hi,

I am using RadGridView's Selection Changed event to get count of SelectedItems...
But what I noticed is Selection Changed event is firing on Mouse Over event and not on Mouse Left Button Down event..
This behaviour causes issues in getting proper count of selected items.. And when I remove a selected item from grid, the selection changed event is not firing at all as after removing selected items collection is off course changing to null...

So someone please explain the behaviour..I have set Selection Mode to Extended..

Update : I am using Caliburn framework for attaching events...

Thanks in advance...

7 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 29 Dec 2010, 08:00 AM
Hello,

 The grid does not have such built-in behavior - you can check our demos fore more info. 

Kind regards,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Nikhil Thaker
Top achievements
Rank 1
answered on 29 Dec 2010, 08:32 AM
Thanks for quick reply...

but where you are using SelectionChanged event of rad grid view in your Demo..?

0
Neilson
Top achievements
Rank 1
answered on 07 Jan 2011, 09:56 PM
hi, we had the same problem and switch the SelectionMode to Single instead of Extended. In our case, we didn't need to select more that one item. Hopefully it will help. Cheers.
0
Nikhil Thaker
Top achievements
Rank 1
answered on 11 Jan 2011, 11:28 AM
Any idea, suggestion, work around for this issue from Telerik Team..?
0
Milan
Telerik team
answered on 13 Jan 2011, 05:27 PM

Hello Nikhil Thaker,

If you have a breakpoint set in the event handler for SelectionChanged the grid will start drag selection once you continue the execution of your program. This is caused by limitations of the Silverlight framework. 

Does the problem occur if there is no breakpoint in the event handler?



Kind regards,
Milan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Aytaç Utku TOPAL
Top achievements
Rank 2
answered on 03 Apr 2012, 08:38 AM
Hello Telerik team,
I have the same problem with selectionchanged event and it seems like gridbehavoir is working well after I removed all the breakpoints on its path. But same error occurs when I need to confirm user about selectionchange. 

here is my scenario,

UI have master-detail view together. After user changes selection, program detects changes and asks for confirmation. Selection behaves weird after confirmation is provided. I mean selection change is fired whenever mouse is over .

Do you have any suggestion for my problem.

Best regards,
AytaƧ Utku TOPAL
0
Maya
Telerik team
answered on 05 Apr 2012, 01:31 PM
Hi AytaƧ,

Based on the information provided, I get the impression that you have hit a known issue in Silverlight that the mouse event is not released. And since RadGridView is based on this platform, it performs the same behavior.

What you can try in order to prevent this, but still keep the whole functionality of multiple selection is to set the CanUserSelect property of the grid to "False", while the window is displayed. The right implementation depends entirely on your particular needs. Could you try this approach and let me know how it goes 


Kind regards,
Maya
the Telerik team

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

Tags
GridView
Asked by
Nikhil Thaker
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Nikhil Thaker
Top achievements
Rank 1
Neilson
Top achievements
Rank 1
Milan
Telerik team
Aytaç Utku TOPAL
Top achievements
Rank 2
Maya
Telerik team
Share this question
or