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

Radgrid preserve state.

5 Answers 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 23 May 2011, 11:37 AM
Hi,

I'm using a radgrid in edit mode which has a radcombo box and three textbox controls for each row. Can you point me in the right direction on how to preserve state when i need to do a postback?

Thansk,
Ron

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 May 2011, 12:10 PM
Hello Ron,

I suppose you want to preserve the value of TextBox in edit mode after postback. In order to achieve this, set RadGrid's property EnableViewState as true.

Thanks,
Princy.
0
Ron
Top achievements
Rank 1
answered on 23 May 2011, 12:24 PM
EnableViewState is set to true byfault correct? According to visual studio properties it is set to true. Can you take a look at the screen shot to get an idea of my grid. Maybe that would help. Thanks.
0
Accepted
Pavlina
Telerik team
answered on 25 May 2011, 03:58 PM
Hello Ron,

In this case, you can persist the entered data for all records, thus ensuring that no data is lost. This can be done by updating all records, when a postback is made. Additional information on this option is available in the following topic:
http://www.telerik.com/help/aspnet-ajax/grid-performing-batch-updates.html

I hope this gets you started properly.

Kind regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Ron
Top achievements
Rank 1
answered on 26 May 2011, 10:36 AM
I will give this a try.  Thanks.
0
Ron
Top achievements
Rank 1
answered on 02 Jun 2011, 04:32 PM
I really appreciate your assistance with this one.

Thanks,
Ron.
Tags
Grid
Asked by
Ron
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ron
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or