Grid not display on asynchrous postback

4 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 30 Apr 2008 Link to this post


    Since I migrated my RadGrids to rad for ASP.NET, they are displayed on first Render but as soon as I have an action as nextpage or sort, the grid is not redraw. Handler is called but screen is not redraw.
    When I look to generated explorer document, I can see the different rows but it seems that a javascript used to display the grid is not triggered.

    I am using  , NeedDataSource normally called when IsPostBack is true, and I remark that it is not called when I try to sort on another column?

    All was running in classic rad.

    My grids are all in UserControls, the main page uses a MasterPage which contains a RadScriptanager and a RadAjaxManager: should I put Proxies for these 2 objects in the custom controls ?
    Should I add a RadAjaxManagerProxy in same ascx as the grid when the grid is the only object to be updated  by itself ?

    Thanks for clarification.
  2. Konstantin Petkov
    Konstantin Petkov avatar
    1911 posts

    Posted 01 May 2008 Link to this post

    Hi Christian,

    Do you have the Grid added as updated control with AJAX? Can you please disable the AJAX temporary (set RadAjaxManager EnableAJAX="false") to see if the problem is due to the RadAjax configuration or missing settings?

    Kind regards,
    Konstantin Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 06 May 2008 Link to this post

    Hello Konstantin,

    Stopping Ajax had no effect, but I noticed 2 facts:
    1) using a DataGrid1.ReBind() in Page_Load when in Asynch request bring me all features that were not working, NeeDataSource is called with expressrebind reason and the events like delete and so on get normally triggered.
    2) as I am using a PanelBar on the same page and using ViewState, I have a huge VeiwState, could it be the reason why RadGrid is not working normally.
    I will try to get rid of this huge ViewState created by the PanelBar using cache or some other solution. Is there another way than wieState for RadGrid and/or PanelBar to store their configuration?

  4. Bodevain Svensson
    Bodevain Svensson avatar
    195 posts
    Member since:
    May 2006

    Posted 06 May 2008 Link to this post

    Although I am not sure whether the grid is not refreshed with your configuration, I suppose that the lifecycle of the control with viewstate enabled or not can give you some pointers about what is going on:

    Documentation topic about event sequence

    Also take a look at the Performance tips and tricks chapter from the help where there are some hints about how to reduce the grid viewstate or store it in the Session.

Back to Top