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

Dynamic Checkbox in RadGrid appears disabled

2 Answers 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Deepak Vasudevan
Top achievements
Rank 2
Deepak Vasudevan asked on 10 Nov 2011, 06:40 PM
I am creating the columns in the grid dynamically and there is a checkbox in the first column. It is appearing disabled. I would like to have the checkbox enabled. Can some one throw some pointers please?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 11 Nov 2011, 04:55 AM
Hello Deepak,

I suppose GridCheckBoxColumn is your first column.Normally,in browser mode GridCheckBoxColumn is in disabled state. So one suggestion is you can add GridTemplateColumn and add CheckBox in itemTemplate. The following documentation explains the programmatic creation of GridTemplateColumn.
Creating template columns programmatically

Thanks,
Princy.
0
Deepak Vasudevan
Top achievements
Rank 2
answered on 15 Nov 2011, 12:00 AM
Thanks Princy. That worked for me.
Tags
Grid
Asked by
Deepak Vasudevan
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 1
Deepak Vasudevan
Top achievements
Rank 2
Share this question
or