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

Setting BackColor on ResourceStyleMapping in code behind

1 Answer 71 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Danny
Top achievements
Rank 1
Danny asked on 07 Nov 2014, 05:38 PM
Hi,

I'd like to set the BackColor property of a resourcestylemapping using code behind. At the moment I am setting the applyCSSclass in the code behind (VB.net) as follows:

radscheduler.ResourceStyles.Add(New ResourceStyleMapping("User", "10", "rsCategoryBlue"))

This works fine but I would like to set the BackColor rather than applyCSSclass but there does not seem to be a property for it using the above method.

Thanks

Tim

1 Answer, 1 is accepted

Sort by
0
Accepted
Boyan Dimitrov
Telerik team
answered on 12 Nov 2014, 12:12 PM
Hello Tim,

Please try the following approach:
//code behind
ResourceStyleMapping mapping = new ResourceStyleMapping();
           mapping.BackColor = System.Drawing.Color.Blue;
           mapping.Type = "User";
           mapping.Key = "10";
           RadScheduler1.ResourceStyles.Add(mapping);



Regards,
Boyan Dimitrov
Telerik
 

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.

 
Tags
Scheduler
Asked by
Danny
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or