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

allow multiselection in gridviewcheckboxcolumn

4 Answers 314 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 1
Hans asked on 10 Dec 2014, 01:12 PM
How I can do to allow multiple checkbox checked in editable gridviewcheckboxcolumn. Now i can check only one column even if allow multi row selection is enabled

4 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 13 Dec 2014, 11:55 AM
Hello Hans,

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.

 
0
Chris
Top achievements
Rank 1
answered on 08 Dec 2017, 05:39 PM

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>

 

0
Chris
Top achievements
Rank 1
answered on 08 Dec 2017, 05:41 PM
disregard.
0
Hristo
Telerik team
answered on 11 Dec 2017, 02:58 PM
Hello Chris,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Hans
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Chris
Top achievements
Rank 1
Share this question
or