I have abound gridview that i have added a checkbox column to as the first column.
i cannot check any checkboxes in any row, only able to check the headercheckbox which selects all checkboxes of every row.
Dim checkboxcolumn As New GridViewCheckBoxColumn
checkboxcolumn.DataType = GetType(Integer)
checkboxcolumn.Name = "SelectedColumn"
checkboxcolumn.FieldName = "Select"
checkboxcolumn.HeaderText = "Select?"
GV_Assets.MasterTemplate.Columns.Add(checkboxcolumn)
checkboxcolumn.EnableHeaderCheckBox = True
4 Answers, 1 is accepted
The GridViewCheckBoxColumn.EditMode property controls when the value of the editor will be submitted to the cell. By default, (OnValidate), the value will be submitted only when the current cell changes or the grid looses focus. The other value, (OnValueChange), will submit the value immediately after the editor value changes. I would recommend you to set the EditMode property to OnValueChange. Thus, the cell's value will be toggled as soon as you check/uncheck the RadCheckBoxElement.
I have attached a sample project for your reference. Could you please give a try and see how it works on your end?
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Dear Dess
Would you please send the same project but in C# language? I am not able open VB projects at the moment.
It is much appreciated.
Please find attached the C# project for the GridViewCheckBoxColumn.
I would like to note that we offer a free online code converter from C# to VB.NET and vice versa: http://converter.telerik.com/ Feel free to use it whenever you need to covert any piece of code.
I hope this information helps.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Hi
I had the same issue.
Make sure that your Rows are Editable.
I had AllowEditRows on false and thus could not edit the checkbox.