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

Checking Multiple Checkboxes in different columns of RadGridView

2 Answers 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kiet
Top achievements
Rank 1
Kiet asked on 28 Mar 2012, 08:48 PM
Hello All,

I have a RadGridView with two columns of Checkboxes.  If the user Checks the Checkbox in Column B, I would like to also have the Checkbox in Column A automatically check itself.  Is this possible?  I've been playing around in the code for the Checkbox_Click event, but have not had much success.  Any help would be much appreciated. 

Thanks in advance,
Kiet

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 29 Mar 2012, 09:40 AM
Hi Kiet ,

Are those checkboxes bound to a property in your business object ?  If so you may use two way binding. then when you set the relevant properties in your business object, the checkboxes will react to the changes and change their checked/unchecked state. This is the recommended approach ( working over data rather than the visual objects) .

All the best,
Pavel Pavlov
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
Kiet
Top achievements
Rank 1
answered on 29 Mar 2012, 04:11 PM
Thanks Pavel.  I did a grid rebind to refresh the bindings on the checkboxes and that seemed to work.

Thanks again,
Kiet
Tags
GridView
Asked by
Kiet
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Kiet
Top achievements
Rank 1
Share this question
or