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

8 posts, 0 answers
  1. Nikhil Thaker
    Nikhil Thaker avatar
    22 posts
    Member since:
    Mar 2010

    Posted 29 Dec 2010 Link to this post

    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...
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 29 Dec 2010 Link to this post

    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
  3. Nikhil Thaker
    Nikhil Thaker avatar
    22 posts
    Member since:
    Mar 2010

    Posted 29 Dec 2010 Link to this post

    Thanks for quick reply...

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

  4. Neilson
    Neilson avatar
    1 posts
    Member since:
    Jan 2011

    Posted 07 Jan 2011 Link to this post

    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.
  5. Nikhil Thaker
    Nikhil Thaker avatar
    22 posts
    Member since:
    Mar 2010

    Posted 11 Jan 2011 Link to this post

    Any idea, suggestion, work around for this issue from Telerik Team..?
  6. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 13 Jan 2011 Link to this post

    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>>
  7. Aytaç Utku TOPAL
    Aytaç Utku TOPAL avatar
    14 posts
    Member since:
    Apr 2008

    Posted 03 Apr 2012 Link to this post

    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
  8. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 05 Apr 2012 Link to this post

    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 >>

Back to Top