How to define initial value in richselect?

I have used below code to define dynamic data in rich select. Now i want to define initial value in richselect. So how can i do?

$$(“scheduler”).$$(“user”).define(‘data’,options);

Please see the following post
viewtopic.php?f=24&t=31501&p=98993

Hi, Thanks and i have checked above link but i don’t want to bind rich select value but i want to define initial value of richselect after defining it’s value.

Hi,

You can set the required value in the new_event_data template:

docs.dhtmlx.com/doku.php?id=dhtm … event_data

I am not getting. Could you please provide example, if possible?

Here is the example:

scheduler.templates.new_event_data= function(){
var hours = (dhx.Date.add(new Date(),1,“hour”)).getHours();
var start = dhx.Date.copy(this.coreData.getValue());
start.setHours(hours);
var end = dhx.Date.add(start,1,“hour”);
return {start_date:start,end_date:end, user: 1 };
};