This is a migrated thread and some comments may be shown as answers.
Radgrid state management
7 Answers 55 Views
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 22 May 2011, 03:46 PM
Hi,

Can you point me in the right direction on how to save state for rad grid. I have a grid in edit mode and when i create a new row because of the post back the values in edit mode are lost when row is created. I attached a screen of the grid in edit mode to give you an idea. 

Thanks,
Ron.

7 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 23 May 2011, 12:23 PM
Hello Ron,

I hope setting EnableViewState as true will help you.

Thanks,
Shinu.
0
Ron
Top achievements
Rank 1
answered on 23 May 2011, 12:25 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
Princy
Top achievements
Rank 1
answered on 23 May 2011, 01:16 PM
Hello Ron,

Please try by setting EnableViewState property of RadGrid as true which is false by default.

Thanks,
Princy.
0
Bruno
Top achievements
Rank 2
answered on 23 May 2011, 01:54 PM
hey prince,

this issue has probably something to do with the viewstate but...
is this april fool's hoax of some kind? or if it isn't, will you share with me where draw your experience from?
i always thought the viewstate is enabled by default

@ron - post some more indepth information about your caswe please.
0
Ron
Top achievements
Rank 1
answered on 23 May 2011, 02:28 PM
No disrespect to Princy, but I agree with you Bruno, I'm using Asp.net Ajax Q1 2011everything looks as though EnableViewState is set to true by default. But to answer your question Bruno, I'm using a grid table for invoice line items and the first column for each row is a combo box for user to select and item and depending on which item they select the remaining columns are filled. The problem comes in when I "add new row", there's a post back involved and all data from the grid's combo box and text boxes are lost. Can you take a look at the screen shot to get an idea?

Thanks,
0
Marin
Telerik team
answered on 26 May 2011, 08:49 AM
Hello Ron,

 I see we are discussing this issue in another forum thread where my colleague has suggested a solution. If you do not mind we will continue the communication there.

Greetings,
Marin
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:34 AM
Ok, thanks.
Tags
Grid
Asked by
Ron
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Ron
Top achievements
Rank 1
Princy
Top achievements
Rank 1
Bruno
Top achievements
Rank 2
Marin
Telerik team
Share this question
or