Hello. I have added a CheckBox to a GridView. I need to be able to check and un-check this CheckBox w/o editing the row. I have seen examples where the CheckBox is checked when the row is clicked but this is not what I am after.
Thanks in advance.
Thanks in advance.
5 Answers, 1 is accepted
0
Hello,
Didie
the Telerik team
Do you mean that you want to check and uncheck the CheckBox with a single click on it?
Greetings,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 >>
0
Marcelo
Top achievements
Rank 1
answered on 07 Mar 2012, 04:39 PM
Hello Didie. Yes, would like to have just the CheckBox "open" (editable) so the users can check and un-check it with a single click.
0
Accepted
Hi,
Didie
the Telerik team
There are two approaches to achieve this. Please refer to this help article for further information.
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 >>
0
Marcelo
Top achievements
Rank 1
answered on 08 Mar 2012, 01:39 PM
Hello Didie and thank you. That's what I needed. In fact, I did some testing on all the options I found and wanetd to share the following:
I have tried
- GridViewSelection,
- GridViewCheckBoxColumn,
- GridViewDataColumn with a regular CheckBox within the DataTemplate
My findings (just with the XAML code) below...
- The Check Box gets checked when you click anywhere in the row (including the check box itself). To un-check it, you need to click on the Check Box. This option allows you to select multiple rows if you click on the Check Box itself or select only one row if you click anywhere on the row. Know that if you have checked multiple Check Boxes (by clicking on the Check Box) and then you selecet anywhere on a row, all your previous selections are gone and the Check Box in the row clicked is checked
- The Check Box gets checked with two clicks on the Check Box and to un-check it only one click is needed. This option allows you to select only one row at the time. Know that if you check a Check Box and then click anywhere else, the Check Box gets un-checked
- The Check Box gets checked with one click and un-checked with one click. This option allows you to select multiple rows and clicking on the row does not check or un-check the Check Box
0
Hello,
Didie
the Telerik team
Thank you for that additional information.
Kind regards,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 >>