How to use custom fields when loading data into scheduler?

Hi,

I am trying to load custom fields into a scheduler using ‘dhtmlxscheduler_mobile.js’. This is a json sample with the data I would like to load:

{
“details”: “whatever”,
“customField”: “custom data”,
“id”: 0,
“text”: “text”,
“start_date”: “2011-09-21 10:59”,
“end_date”: “2011-09-21 12:16”,
“color”: “rgb(255,0,0)”
}

However, when trying to customize the selected event template using ‘scheduler.templates.selected_event’, we have a function with two params: ‘obj’ and ‘type’. ‘obj’ should be loaded with all the fields previously described, but instead of that, it’s loaded only with the mandatory fields: id, text, start_date, end_date and color.

Any help would be appreciated.

Thanks.