we need to change skin dynamically for all controls in web application. i have not found appropriate solution for web application. Kindly provide a solution which would be helpful for me.
Thanks,
Rajender..
3 Answers, 1 is accepted
0
Galin
Telerik team
answered on 29 Jul 2014, 12:55 PM
Hi Rajender,
In order to set he Skin globally there are two options
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
I created this method in my Site.Master.cs code behind. In the Page_Load I check to make sure the Session["ID"] is not null before
calling the SetPageTheme. This way I only have to set it in one place. Then whenever I call a web page the theme will get set in the master before running the page I am calling.
private void SetPageTheme()
{
int UserID = Convert.ToInt32(Session["ID"].ToString());
// Use LINQ query to get User Record with Preferred Theme