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
The grid does not have such built-in behavior - you can check our demos fore more info.
Kind regards,Vlad
the Telerik team
but where you are using SelectionChanged event of rad grid view in your Demo..?
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
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
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
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>