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

Controls loosing their style/skin on AJAX postback

11 Answers 323 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 2
Matt asked on 03 Aug 2010, 01:40 PM
Hi,

I have been working with the RAD AJAX tools for a while and I have noticed on some pages that controls change in appearance  when the page does an AJAX postback.  It is usually an unlrelated part of the page from that which is posting back.

If I had to take a stab at what is happening, I would guess that the AJAX postback was causing other Rad Controls to loose their styling.

Can anyone point me in the right direction here?

11 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 05 Aug 2010, 12:34 PM
Hello Tony,

You can try to set the EnableAjaxSkinRendering property to "true" for the affected controls in the Page_Load server-side event handler. If that does not help, please provide more details about your scenario, so we can investigate further and advise you accordingly.

Best wishes,
Pavel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
mghandour
Top achievements
Rank 1
answered on 12 Oct 2012, 02:06 PM
hi, i have the same problem
i am using DNN with my custom Modules
after a RadAjaxPanel Postback (with in my module's ascx files) , many style problems occurred in whole page like the menu or other contents.
if i replaced the RadAjaxPanel with UpdatePanel everything works ok.
i am using Skins generated by artisteer, but also the default DNN skin 5.6 lost some skin properties

thanks
0
Pavlina
Telerik team
answered on 17 Oct 2012, 10:43 AM
Hello,

Go through the second point of this help article which elaborates on Control Skin is not loaded after ajax problem and see if it helps:
http://www.telerik.com/help/aspnet-ajax/ajax-common-issues.html

Regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
mghandour
Top achievements
Rank 1
answered on 17 Oct 2012, 11:05 AM
Hello
thanks for you reply, but this is not my case, the css problem is with html tags (ul, td, tr ... ) not with any asp or telerik control..
the these controls are not inside the Ajax Panel, i attached two screenshot before and after the ajax request.
thanks
0
Pavlina
Telerik team
answered on 22 Oct 2012, 12:16 PM
Hi,

At this point to be able to provide more to the point answer, I will ask you to open a formal support ticket and send us a sample runnable project where the problem can be replicated. We will review it locally and will advice you further.

Regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Robert
Top achievements
Rank 1
answered on 13 Feb 2016, 04:23 PM
I know this is an older post but I had problems with non-Telerik controls inside a ajax panel losing styling on an ajax request too.  radio buttons, checkboxes, etc.  In my CSS file I applied the "!important" on the properties and the problem seemed to go away. Just thought I would post to offer a possible solution for someone who might run into this too.
0
Pavlina
Telerik team
answered on 17 Feb 2016, 09:44 PM
Hello,

Thank you for sharing your findings with the community.

Regards,
Pavlina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Robert
Top achievements
Rank 1
answered on 14 Mar 2016, 08:35 PM
No good deed goes unpunished.  Now I am having issues with the Telerik controls losing their style on postback.  :-(  The controls are not inside the panel.
0
Pavlina
Telerik team
answered on 15 Mar 2016, 04:31 PM
Hello,

Could you isolate the issue in a runnable project following the instructions from this blog post: http://www.telerik.com/blogs/isolating-a-problem-in-a-sample-project  and send it to us? We will test it locally and will get back to you with a proper solution.

Regards,
Pavlina
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Robert
Top achievements
Rank 1
answered on 15 Mar 2016, 04:40 PM

Actually I determined the problem was due to your Telerik Visual Style Builder.  I used that tool to change colors, etc. and in the code created from your tool it was applying this style in both the date picker and the combobox with regard to the sprite:

Which makes sense because there is no 'Common/radActionsSprite.png' in my project.

.RadPicker .rcCalPopup, .RadPicker .rcTimePopup
{
border: 1px solid #cdcdcd;
background-color: #f9f9f9;
/* background-image: url('Common/radActionsSprite.png');*/
width: 34px;
height: 34px;
}

.RadComboBox .rcbArrowCell a
{
width: 28px;
height: 34px;
/*background-image: url('Common/radActionsSprite.png');*/
background-position: -11px -58px;
background-repeat: no-repeat;
}

Once I excluded those lines the problem went away. 

 

Thanks Pavlina.

Robert

 

 

0
Pavlina
Telerik team
answered on 17 Mar 2016, 10:24 AM
Hello,

I am glad to hear that you managed to find and resolve the issue. Do not hesitate to contact us in case you need additional assistance.

Regards,
Pavlina
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Ajax
Asked by
Matt
Top achievements
Rank 2
Answers by
Pavel
Telerik team
mghandour
Top achievements
Rank 1
Pavlina
Telerik team
Robert
Top achievements
Rank 1
Share this question
or