RadGridView Multiple selection by holding the left mouse button

2 posts, 0 answers
  1. Paul
    Paul avatar
    7 posts
    Member since:
    Feb 2015

    Posted 24 Feb 2015 Link to this post

    Hi,

    I set SelectionMode = Extended;

    If I select a new item of the grid and try to select multiple rows holding the left mouse button everything working as expected (grid select multiple rows). 

    But If I select selected row of the grid and try to select multiple rows holding the left mouse button the new selected rows won't be selected. 
    How can I implement this behavior?
  2. Yoan
    Admin
    Yoan avatar
    1199 posts

    Posted 24 Feb 2015 Link to this post

    Hi,

    You can try to clear the selected items of the grid in PreviewMouseLeftButtonDown event. Please check the following code snippet for a reference:
    private void clubsGrid_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
            {
                this.radGridView1.SelectedItems.Clear();
            }


    Regards,
    Yoan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top