One last question then I'll leave you alone :-)
In the scheduler is there an easierway to conditionally prevent a user from selecting an cell in the TimeRangeSelected event than calling my server side code to validate on each TimeRangeSelected event? I read the following post (about a year old): http://forums.daypilot.org/Topic.aspx/333/disabling_the_click_event_for_creating_new_eventsbut it requires server side validation.I am trying to prevent the user from selecting invalid time slots based of certain conditions. Ican successfully change the background color of the cell in the BeforeCellRender event to visually indicate this is an invalid selection. But that is only a visual indicator...the cell itself of course is still functional. I was hoping that I could simply check the background color on the TimeRangeSelected event viaJavaScriptbut unfortunetly it's not available. I do see an interesting property on TimeRangeSelected called"data" which is a Json.JsonData type but is always null. Can I use this somehow?
I know I can accomplish this based off the post above, but if I could just simply compare cell background colors or some custom data returned in the TimeRangeSelected eventit would save from a cosltly database call.
Thanks for your time!