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

EnableViewState=false and NeedDataSource

2 Answers 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Piyush Bhatt
Top achievements
Rank 2
Piyush Bhatt asked on 30 Mar 2008, 09:21 PM

I am implementing Grid with EnableViewState=false. And this is what I observed.

When View State is not enabled, NeedDataSource gets called after Page_Load. In NeedDataSource, it rebinds the grid; after that my other events get called which calls .Rebind() method again - after this the NeedDataSource does not get called again.

Desired behaviour would be that Rebind() calls NeedDataSource no matter what - but in above situation I did not observe that.

Is this by design?

-Piyush

2 Answers, 1 is accepted

Sort by
0
Piyush Bhatt
Top achievements
Rank 2
answered on 30 Mar 2008, 09:39 PM
I am also trying to achieve Paging with ViewState=false. Do you have any example ready to do that? Because I have seen many people posting about this problem on your site. It would be nice to have this example online.

Thanks,
Piyush
0
Vlad
Telerik team
answered on 31 Mar 2008, 07:00 AM
Hi Piyush,

You can check this example for more info:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Programming/ViewState/DefaultCS.aspx

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Piyush Bhatt
Top achievements
Rank 2
Answers by
Piyush Bhatt
Top achievements
Rank 2
Vlad
Telerik team
Share this question
or