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

RadGrid - State Maintenace of Checkbox Controls of Dynamically generated Template column in paging

4 Answers 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Xavier Arulkumar
Top achievements
Rank 1
Xavier Arulkumar asked on 21 Apr 2010, 09:32 AM
We have a grid declared in design time. All the columns are created dynamically in the code behind.It consists of bound columns and a template column. In that template column, we are adding check boxes as items. We want to maintain the state of the check boxes during paging. Can you give me the sample code for this?

 

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 21 Apr 2010, 12:54 PM
Hello Xavier,

The state of CheckBox control in GridTemplateColumn will not persist on rebinding the RadGrid. You can refer the following documentation on how to retain the checkbox state on rebind.
Persisting CheckBox control state in GridTemplateColumn on rebind

Regards,
Princy.
0
Xavier Arulkumar
Top achievements
Rank 1
answered on 21 Apr 2010, 01:00 PM
In the document that you have referred, the template column is generated in design time itself. I need the sample code for maintaining the state of check boxes in dynamically generated template column.

Regards,
Xavier
0
Xavier Arulkumar
Top achievements
Rank 1
answered on 03 May 2010, 06:39 AM
Hi,

Can anybody help me to fix this issue? I am in urgent need.

Thanks,
Xavier
0
Yavor
Telerik team
answered on 05 May 2010, 11:31 AM
Hello Xavier,

Even if the template column(s) is dynamically generated, the approach remains the same - the events are the same, and the way the checkboxes are referenced is the same. Can you let me know how this falls short in your case?

Sincerely yours,
Yavor
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.
Tags
Grid
Asked by
Xavier Arulkumar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Xavier Arulkumar
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or