Hi,
I have implemented stylesheetManager for my application.
I am trying to set different theme on postback i.e. by adding css files dynamically.
here is sample code:
I am calling above method on Page's Init event.
Style is set on first time load only and never works after postback. I have read following post but of no use.
http://www.telerik.com/community/forums/aspnet-ajax/scriptmanager-and-stylesheetmanager/stylesheetmanager-does-not-update-head-section-after-ajax-postback.aspx
Any help? Thanks in anticipation.
I have implemented stylesheetManager for my application.
I am trying to set different theme on postback i.e. by adding css files dynamically.
here is sample code:
private void AddStyleSheets(RadStyleSheetManager styleSheetManager) { styleSheetManager.StyleSheets.Clear(); if (SessionManager.CurrentSessionManager.PageTheme.ToLower().Equals("tone")) { styleSheetManager.StyleSheets.Add(new Telerik.Web.UI.StyleSheetReference("SNet.RTO.Skins.TOne.ComboBox.css", "SNet.RTO.Skins.TOne")); } else { styleSheetManager.StyleSheets.Add(new Telerik.Web.UI.StyleSheetReference("CustomSkins.ComboBox.css", "CustomSkins")); } styleSheetManager.ApplyStyleSheetSkin(Page); }I am calling above method on Page's Init event.
Style is set on first time load only and never works after postback. I have read following post but of no use.
http://www.telerik.com/community/forums/aspnet-ajax/scriptmanager-and-stylesheetmanager/stylesheetmanager-does-not-update-head-section-after-ajax-postback.aspx
Any help? Thanks in anticipation.