Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prashant on Sep 14, 2009 23:39
open dhtmlx forum
Scheduler form width modification

I have implemented a solution given by support team. and because of that year select box is wrapping up. Please find the code snippet below. as well as I want to disable the event creation. but if an event is already there ,It should be editable.

<script type="text/javascript" charset="utf-8">

function init() {
scheduler.config.xml_date="%Y-%m-%d %H:%i";

scheduler.config.lightbox.sections=[
{ name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
{ name:"location", height:43, map_to:"details", type:"link"},
{ name:"time", height:72, type:"time", map_to:"auto"}
]
scheduler.config.first_hour=0;
scheduler.locale.labels.section_location="Description";
scheduler.locale.labels.section_description="Event";
scheduler.config.details_on_create=false;
scheduler.config.details_on_dblclick=true;

scheduler.init('scheduler_here',null,"month");

scheduler.load("/bm_events.do?uid="+scheduler.uid());
var dp = new dataProcessor("/bm_events.do");
dp.init(scheduler);
}



scheduler.form_blocks["link"]={
render:function(sns){
return "<a href=\"#\"></a>";
},
set_value:function(node,value,ev){
node.href = value;
node.innerHTML=value;
},
get_value:function(node,ev){
return node.href;
},
focus:function(node){
}
}

</script>
Answer posted by Alex (support) on Sep 16, 2009 08:16

You can try to use the following approach to disable event creation:

scheduler.config.drag_create=0;