Hello,
I use
scheduler.attachEvent(“onBeforeEventChanged”, function( ev ){
});
to show my dialog. But i want to know that, every time dialog is showed by clicking on scheduler or dragging on scheduler.
Help me How to know that.?
Thanks.
Hello,
I use
scheduler.attachEvent(“onBeforeEventChanged”, function( ev ){
});
to show my dialog. But i want to know that, every time dialog is showed by clicking on scheduler or dragging on scheduler.
Help me How to know that.?
Thanks.
You can use the same onBeforeEventChanged but with a bit of extra checking
scheduler.attachEvent("onBeforeEventChanged", function(ev,e,is_new){
if (is_new){
...here your custom logic...
}
return true;
})
With such code, logic will be triggered only when you are creating new event by click or drag
i mean that, with drag event i will show dialog_1; but with double_click event i will must show dialog_2.
Therefore, i want to know which event is done??
second parameter of onBeforeEventChanged - native html event, you can check its type - is it dblclick or mousemove event