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

[Solved] RadGrid selected rows and postback

3 Answers 239 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jonathan Stein
Top achievements
Rank 1
Jonathan Stein asked on 14 Jul 2009, 06:30 PM

Hello All, 

I have a rad grid that contains the GridTemplateColumn and a check box. I basicaly copied the demo code from the Grid / Server-side Row Selection. The only changes i made are to the data source. However, when the page postbacks, the check boxes do not remian checked. Is there something more that I need to add to the demo code?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Jul 2009, 04:44 AM
Hi Jonathan,

Checkout the following link which describes how to persist checkbox control state in GridTemplateColumn on rebinding grid. I hope this would be helpful in achieving the scenario.
Persisting CheckBox control state in GridTemplateColumn on rebind

-Shinu.
0
Jonathan Stein
Top achievements
Rank 1
answered on 15 Jul 2009, 02:24 PM
Thanks for the reply, however I still have the same problem. The boxes do no tremained checked. I'm going to play with this code and see maybe a combination of mine and your suggestion may be the key.
0
Jonathan Stein
Top achievements
Rank 1
answered on 15 Jul 2009, 03:30 PM
I figured it out. Turns out RadGrid1.Rebind() had worked its way into the page load. Took it out, and everything works the way it should.
Tags
Grid
Asked by
Jonathan Stein
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Jonathan Stein
Top achievements
Rank 1
Share this question
or