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

Get Checkbox Values from Multiple GridCheckBoxColumn

2 Answers 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Max Free
Top achievements
Rank 1
Max Free asked on 01 Apr 2010, 02:43 PM
Hi to all,

I need an advice or the solution for my problem.
The idea is that I have a RadGrid and it has 3 GridCheckBoxColumn.
Check value can be assigned by only one of them in a row.
After a button (outside the grid) is pressed I need to get a loop through all rows and insert as a string, into a database field, the rows IDs at what checkbox was found "True" value.

<telerik:GridCheckBoxColumn DataField="BasePer" DataType="System.Boolean" HeaderText="BasePer" SortExpression="BasePer" UniqueName="BasePer" > 
</telerik:GridCheckBoxColumn> 
 
<telerik:GridCheckBoxColumn DataField="HighPer" DataType="System.Boolean"  HeaderText="HighPer" SortExpression="HighPer" UniqueName="HighPer"
</telerik:GridCheckBoxColumn> 
                
<telerik:GridCheckBoxColumn DataField="LowPer" DataType="System.Boolean" HeaderText="LowPer" SortExpression="LowPer" UniqueName="LowPer"
</telerik:GridCheckBoxColumn> 

Thank you in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 02 Apr 2010, 03:08 PM
Hello Max,

I created a runnable demo for you. Please download it let me know if you need further assistance.

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Max Free
Top achievements
Rank 1
answered on 02 Apr 2010, 03:20 PM
It works wonderful.
Thank you once again.
Tags
Grid
Asked by
Max Free
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Max Free
Top achievements
Rank 1
Share this question
or