I have bound a Telerik RadGridView properly with the first column being a bound checkbox:
<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding Selected, Mode=TwoWay}"
Header="Generate" Width="95" IsReadOnly="False"/>
I can click and change the checkbox state no problem. The problem is that checking the checkbox is not intuitive. In order for a user to click a checkbox, they have to first click the checkbox cell, click again to activate, and then click again to check the check box. Three individual clicks to check the checkbox.
Is there a better or native way to make this seamless? I want the user to be able to click a checkbox and immidiately see it checked regardless if the row/cell is already selected. I want the user to be able to do a check in one click.
Infragistics controls could do this years ago.
Could someone please explain how to get more intuitive check box behaviour in the Telerik RadGridView for Silverlight?
I’ve had much the same issue as you recently. What I did to fix it was to put a CheckBox in the
CellTemplateof the column:Note that I’ve added the property
IsReadOnly="True"to the column. This doesn’t make the column read-only; you should still be able to click on the checkbox and set your boolean property. What this property does is to prevent the cells in the column from using theCellEditTemplatewhen you click on them.Normally, a
RadGridViewcolumn uses theCellTemplatefor viewing and theCellEditTemplatewhen the cell goes into edit mode. However, we don’t need to use theCellEditTemplatehere, because theCellTemplateis perfectly capable of changing the value of these boolean properties on its own.