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

[Solved] Cell edit question

2 Answers 59 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.
Ken
Top achievements
Rank 1
Ken asked on 11 Aug 2011, 08:43 AM
Hi,

I've a GridView which has only CheckBox columns. With the default settings if one wants to change the check state of one cell, it's a multi-step operation:
1. Click the cell -> the row gets selected
2. Click the cell again -> the checkbox check state changes
3. Tab/focus out -> the underlying bound source is updated

Is it possible to somehow make this a one-click operation? Meaning, when the user clicks anywhere on a checkbox in the grid, its check state is changed AND the binding is updated without the need to focus out?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 11 Aug 2011, 08:51 AM
Hello Adrian,

 
You may take a look at the following online help article "Number of clicks in the CheckBox column".


Kind regards,
Vanya Pavlova
the Telerik team

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

0
Ken
Top achievements
Rank 1
answered on 11 Aug 2011, 09:30 AM
Hi Vanya,

Thanks a lot for the link. I ended up using the template approach, because if I set the EditTrigger and AutoSelectOnEdit, for some reason, not all the time my binding source was updated when checking the checkboxes. Maybe it has something to do with the fact that I'm generating the columns for the grid programatically (dynamic number of columns). Luckily the same code but with a dyamically created DataTemplate with a CheckBox inside works perfectly.

Thanks again!
Tags
GridView
Asked by
Ken
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Ken
Top achievements
Rank 1
Share this question
or