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

css lost when autopostback

3 Answers 158 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Baris
Top achievements
Rank 1
Baris asked on 20 Mar 2014, 01:25 PM
Here is my code.     

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelsRenderMode="Inline">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="pagerMetadata">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rlvMetadata" UpdatePanelRenderMode="Inline" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>

but I lost css in aspx side. I tried add UpdatePanelsRenderMode="Inline" propert but nothing changed. how can I do that using c#?

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 25 Mar 2014, 10:56 AM
Hi Baris,

In order to avoid the problematic behavior please try to set EnableAjaxSkinRendering property of the "rlvMetadata" control to true on Page_Load on every post back.

Give it a try and verify if it works.

Regards,
Maria Ilieva
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Baris
Top achievements
Rank 1
answered on 26 Mar 2014, 06:18 PM
Hi Maria,

I tried that, but nothing changed. Any idea?
0
Maria Ilieva
Telerik team
answered on 31 Mar 2014, 11:58 AM
Hello Baris,

Could you please elaborate a bit more on the exact issue you are facing?

Us the problem related with missing controls styles after the Ajax request? if this is the case please send us a screenshot that presents the correct look of the controls before the request and the problematic look after it.
Also if the issue appear only in IE browser with version earlier than IE10, please make sure that you do not hit the IE 31 style sheet limitation described below:

Internet Explorer CSS limits

Regards,
Maria Ilieva
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
Ajax
Asked by
Baris
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Baris
Top achievements
Rank 1
Share this question
or