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

RadGrid Losing Style On Partial Postback

3 Answers 233 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrew Buxton
Top achievements
Rank 1
Andrew Buxton asked on 10 Mar 2011, 04:54 PM
Hi,

I am currently building an application that uses the RadGrid to display data and the grid appears to be dropping its styling.  The scenario is as follows.

Master Page -> Page -> UserControl -> RadGrid

An AjaxPanel is wrapped around the UserControl level and this is where the partial postback happens. There are a few UserControls at that level which are shown or hidden depending on the context of the postback. When the UserControl containing the RadGrid first loads everything is fine (it is the first UserControl to load). When the postback occurs it hides the UserControl containing the RadGrid and shows a different UserControl. When there is a further postback the UserControl containing the RadGrid is reshown and at this point it has no styles applied.

I am using the default style which is fetched using the HttpHandler. This is the only style being used.

I hope you can provide me with some assistance.

Regards,

Andy.

3 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 15 Mar 2011, 01:27 PM
Hi Andrew,

Adding a RadStyleSheetManager control to your page is bound to solve the issue. However, I'd appreciated if you confirm that the page is not within SharePoint or some other third party CMS. 

Regards,
Tsvetoslav
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
sharanya
Top achievements
Rank 1
answered on 11 May 2011, 06:34 AM
Hi Tsvetoslav,

I am having the same issue where Radgrid loses its style on partial postback. This is happening only in safari browser and works well in IE.

It seems to lose reference to webresource.axd.

Please help me with this issue.

Thanks & Regards,
sharanya
0
Tsvetoslav
Telerik team
answered on 11 May 2011, 12:38 PM
Hi sharanya,

Apart from the suggestion in my previous reply, I'd recommend that you take a look a the following help article as well:
http://www.telerik.com/help/aspnet-ajax/ajax-load-user-controls.html

Hope it helps. 

All the best,
Tsvetoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Andrew Buxton
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
sharanya
Top achievements
Rank 1
Share this question
or