Has anyone found a way to assign the resource styles in a database table and then call them through code? I have two identical calendars(User and Admin) and thought it's redundant to hard code resource styles in both calendars.
Here's an initial attempt i tried so far. I figured if this worked then I could code a loop to read this info from a db. But it didn't work.
Oh, and that's in the Page_Load event. It successfully cleared all the styles, but didn't replace with the new syle assignment. Where/when would I need to call this? Or is there another way to do this altogether?
Here's an initial attempt i tried so far. I figured if this worked then I could code a loop to read this info from a db. But it didn't work.
RadScheduler1.ResourceStyles.Clear() |
RadScheduler1.ResourceStyles.Add(New Telerik.Web.UI.ResourceStyleMapping("EventType", "Class", "rsCategoryDarkBlue")) |
Oh, and that's in the Page_Load event. It successfully cleared all the styles, but didn't replace with the new syle assignment. Where/when would I need to call this? Or is there another way to do this altogether?