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

Grid not display on asynchrous postback

3 Answers 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 30 Apr 2008, 07:29 AM
Hello,

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.
CS

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 01 May 2008, 07:50 AM
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
0
CSurieux
Top achievements
Rank 2
answered on 06 May 2008, 03:55 PM
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?

CS
0
Bodevain Svensson
Top achievements
Rank 1
answered on 06 May 2008, 04:08 PM
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.

Bodevain
Tags
Grid
Asked by
CSurieux
Top achievements
Rank 2
Answers by
Konstantin Petkov
Telerik team
CSurieux
Top achievements
Rank 2
Bodevain Svensson
Top achievements
Rank 1
Share this question
or