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

RadGrid looses stylesheet after page refreshes/postback

2 Answers 252 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Veshala
Top achievements
Rank 1
Veshala asked on 10 Feb 2012, 11:39 PM
Hi,

I am using 2008.Q2 telerik controls in our project. I have a situation like, onclick of button control, submitting the form. I have a gridview on the form. When page refreshes, gridview looses the stylesheet setting (like alternate row color). Is there any property i need to set to maintain the stylesheet settings on page refresh. I am using skin to style gridview.
Any help is appreciated.

Thanks
Veshala

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Feb 2012, 08:10 AM
Hello,

Check the following forum thread which discussed similar scenario.
http://www.telerik.com/community/forums/aspnet-ajax/combobox/combobox-and-radgrid-loses-css-style-settings-on-radwindow-close.aspx

Thanks,
Princy.
0
Andrey
Telerik team
answered on 15 Feb 2012, 12:21 PM
Hello,

Are you using RadAjaxManager / RadAjaxPanel for AJAX requests, or regular UpdatePanels? Regular UpdatePanels cannot register CSS files during AJAX requests.

For RadAjaxManager / RadAjaxPanel you may need to set EnableAjaxSkinRendering="true" for the affected controls. This must be done programmatically in Page_Load.

Give this approach a try and check whether the issue is resolved.

Greetings,
Andrey
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Grid
Asked by
Veshala
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Andrey
Telerik team
Share this question
or