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

Rebind() does not refresh grid if EnableViewState=false

2 Answers 178 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 28 May 2009, 09:53 PM
I am using Telerik Grid 2008.03.1125.35 with data stamp 08-11-24.

I just noticed that if I disable ViewState on the grid (EnableViewState=false) then explicit call to Rebind() inside AJAX callback does not fire NeedDataSource() event.

The sequence of events is following

Page_Reload
NeedDataSource called
Button AJAX event handler
call to grid.Rebind()
<---- here I expect second call on NeedDataSource() but it never happens

If I set EnableViewState=true, everything works fine

Any ideas on what should I try next? I am sorry that I did not post the ASPX code - the page is rather complex and I would appreciate if you can give me suggestions based on this explanation.

Thank you

Alexander



2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 May 2009, 03:39 AM
Hi Alexander,

Check out the following help article how to Rebind grid on command/postback event with ViewState disabled.
Rebind grid on command/postback event with EnableViewState = false

Thanks
Shinu.





0
Nikolay Rusev
Telerik team
answered on 29 May 2009, 06:38 AM
Hello Alexander,

The following links explains RadGrid event sequence with enabled/disabled ViewState:
http://www.telerik.com/help/aspnet-ajax/grdeventsequence.html

Regards,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Nikolay Rusev
Telerik team
Share this question
or