EnableViewState=false and NeedDataSource

3 posts, 0 answers
  1. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 30 Mar 2008 Link to this post


    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. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 30 Mar 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 31 Mar 2008 Link to this post

    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
Back to Top