4 Answers, 1 is accepted
I am not sure that I completely understand your scenario. Can you please provide more details on it?
Our CheckBoxColumn allows checking multiple items by default. If you cannot check more than one item then there might be a problem in your project. if this is the case please send us your project so we can investigate it. This will let us provide you with further support.
In case you want to select all items with a single click, you should set EnableHeaderCheckBox property to true. Please see the code snippet below:
GridViewCheckBoxColumn checkBoxColumn =
new
GridViewCheckBoxColumn();
checkBoxColumn.FieldName =
"Checkbox"
;
checkBoxColumn.HeaderText =
"Checkbox?"
;
checkBoxColumn.EnableHeaderCheckBox =
true
;
this
.radGridView.MasterTemplate.Columns.Add(checkBoxColumn);
If this is not what you need, please get back to me with a more detailed explanation.
I hope that this helps. Should you have further questions do not hesitate to write back.
Regards,
Hristo
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
I am also having problems with check box persistence. The checks only stay while that cell is selected. Once I click off the cell it returns to a greyed out state. here is my table xaml:
<telerik:RadGridView Grid.Row="11" x:Name="HAZtoConstraint_Table"
GroupRenderMode="Flat"
AutoGenerateColumns="True"
Height="Auto"
Width="900"
CanUserFreezeColumns="False"
RowIndicatorVisibility="Visible"
HorizontalAlignment="Left"
Margin="5,1,0,0" >
<telerik:RadGridView.Columns>
<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsActive, Mode=TwoWay}" IsAutoGenerated="True" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
This thread is discussing the grid control for WinForms. I am assuming that you might be using WPF, in this case, you can refer to their forums: https://www.telerik.com/forums/wpf.
Let me know if you have other questions.
Regards,
Hristo
Progress Telerik