Hi,
My business requirement is that, I should be able to create an event in unitsview and day view but
should block event creation in week view and month view. Is there a way to achieve this. Please help.
Hi,
My business requirement is that, I should be able to create an event in unitsview and day view but
should block event creation in week view and month view. Is there a way to achieve this. Please help.
Hi,
you specify such behavior with the client-side API
JS:scheduler.attachEvent("onViewChange", function (mode , date){
if(mode == "week" || mode == "month"){
scheduler.config.readonly = true;
}else{
scheduler.config.readonly = false;
}
});
The code can be injected to scheduler configuration in following way:
C#DHXScheduler.BeforeInit.Add("config();");
JS:[code]function config(){
scheduler.attachEvent(“onViewChange”, function (mode , date){
if(mode == “week” || mode == “month”){
scheduler.config.readonly = true;
}else{
scheduler.config.readonly = false;
}
});
}[/code]
docs.dhtmlx.com/scheduler/api__s … event.html
docs.dhtmlx.com/scheduler/api__s … onfig.html