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

Viewstate false = no UpdateCommand?

3 Answers 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DaveL
Top achievements
Rank 1
DaveL asked on 21 May 2008, 08:26 PM
So we have the viewstate turned off on all the pages of our web app.  But this apparently kills many features in the RadGrid mainly.  Right now I'm trying to do some edititing in the grid the all the expected events are firing up until the point where the edit form shows up.  Then the update and cancel events dont work...but if I turn the viewstate on then everything works.  Why is that? and is there a way to fix this?

Using
C#
ASP.Net 2.0,
085352_Telerik.Web.UI_2008_1_512_trial_hotfix


Thx.

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 22 May 2008, 08:10 AM
Hello DaveL,

Most of the grid advanced operations requires ViewState to be turned on. If you want to get rid from the ViewState string you can save the ViewState in Session similar to the example in my blog post:
http://blogs.telerik.com/VladimirEnchev/Posts/07-09-25/How_wrong_custom_ViewState_handling_may_harm_more_than_help.aspx?ReturnURL=%2fVladimirEnchev%2fPosts.aspx

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
DaveL
Top achievements
Rank 1
answered on 22 May 2008, 03:39 PM
That's not an option for us.  It's somewhat puzzeling that the viewstate is required for the update and cancle buttons to work.
0
DaveL
Top achievements
Rank 1
answered on 22 May 2008, 09:37 PM
Still with viewstate false.
If I use a user control as an edit form is there a way I could trigger the grid's update command?

And now I just realized when viewstate is off the event from the button in my user control isnt handled by the user control it's self.


Tags
Grid
Asked by
DaveL
Top achievements
Rank 1
Answers by
Vlad
Telerik team
DaveL
Top achievements
Rank 1
Share this question
or