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

Need to click twice on GridViewSelectColumn to select all rows

5 Answers 143 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.
Guillaume
Top achievements
Rank 1
Guillaume asked on 15 Sep 2011, 01:34 PM
Hello,

I have a minor issue in a RadGridView : when i want to select all rows by GridViewSelectColumn i have to click twice on the checkbox because the first click does nothing. Maybe a focus problem in the GridView. Can you help me ? Best regards, Guillaume

5 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 17 Sep 2011, 11:59 AM
Hi Guillaume,

 By setting the EditTriggers="CellClick" property of the GridViewSelectColumn the cells will enter edit mode with a single click only. As explained in this help article, the EditTriggers allows you to specify what action will set the cell in edit mode.

Is this what are you looking for?

Regards,
Didie
the Telerik team

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

0
Guillaume
Top achievements
Rank 1
answered on 19 Sep 2011, 08:35 AM
Hello,

Thanks for your reply but i have not a "EditTriggers" property on GridViewSelectColumn.
Then, when i load my data i set the "IsBusy" property on my GridView and when data is loaded i disable the "IsBusy" and it seems that the focus is on the first cell of the first row.
So, i have to click once to set focus on the column and click once again to select all row (i click on the chckbox in the header of the column not in a row).
0
Guillaume
Top achievements
Rank 1
answered on 21 Sep 2011, 02:52 PM
According to your reply in the bug ticket #466080 the problem is solved.
Thanks for your time.

Best regards,
Guillaume.
0
Ankur
Top achievements
Rank 1
answered on 07 Feb 2012, 10:48 PM
I am dealing with the same issue. What resolved the problem for you?
Or Telerik - what is the solution for not having to double click to select all items?
ML-
0
Dimitrina
Telerik team
answered on 08 Feb 2012, 08:50 AM
Hello,

 The reason for this behaviour was the lack of focus on the grid. 
You should set the focus of the RadGridView when the data is loaded. You may set it like so: 

private void ordersGrid_Loaded(object sender, RoutedEventArgs e)
        {
            (sender as RadGridView).Focus();
        }


All the best,
Didie
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
Guillaume
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Guillaume
Top achievements
Rank 1
Ankur
Top achievements
Rank 1
Share this question
or