Hi,
I notice that, while I can set up custom properties in the Data Model for the scheduler (scheduler.net, MVC), I don’t have access to these properties client-side for new events. It’s not until I refresh the page and then go to edit the newly created event that these properties are attached to the event.
I’m aware that on server-side, I can use:
scheduler.Data.Loader.AddParameter(key, value);//pass param to the data action
scheduler.Data.DataProcessor.AddParameter(key, value);//pass param to the save action
My questions are:
- Is there a better way to access custom properties via javascript or server-side? Far as I can tell, I don’t have access to these properties through commands such as:
var propertyINeed = ev.custom_property;
OR
var ev = scheduler.getEvent(id);
var propertyINeed = ev.custom_property; - If I go the route of using querystring parameters, is there an easy way to access these (that’s already set up through DHTMLX javascript, ie. something like scheduler.getQSParameter(‘someParameter’)?
Note, I would need to access these properties for use in functions such as “onLightBox”, “onEventAdded”, etc.
Thanks!