I am calculating the endtime based on services that are selected.How ever as user clicks the
the event is plotted with time interval of 5mins and also the one with calculated time.i dont want the default event to be plotted.ony the event with calculated time should be displayed .How can this be done?
Normally during event creation, you will have only one event box.
If you have two of them - it seems it is result of some non-valid operations through custom code.
Can you provide any kind of demo link or a sample where the issue can be checked.
this is the link :http://achieveee.com/why2wait/shop/index/60
click on book appointment in any one saloon
to login
user id:philipmathews44@gmail.com
pass:12345678
book an appointment with any store.
the event plotted by my custom logic comes alongwith the default on while only mine should be plotted
It seems that you are constantly refreshing the events from server side. which seem to interfere with new event creation logic. One event is one created by the scheduler itself, second one is loaded from server side, by refresh logic.
i want the one plotted by the scheduler itself to be not plotted only the updated one should be plotted on refresh.
Scheduler can’t ignore and do not plot event which does exist.
You can block new event creation through dnd and instead of it make call to server side where new event will be added and will appear on scheduler after data refresh.
dnd ???
could you explain a little
Normally when you are creating new event by dbl-click or by drag-n-drop (dnd), schedulre do not save event in DB, it will be saved only after lightbox closing ( which allows to confirm new event creation )
In your case, it seems that on moment of lightbox opening - new event is already added to the database, so during data refresh - it is loaded in additional to the one not saved yet.
You can
a) remove your event saving code and save event only after lightbox closing
or
b) you can prevent lightbox opening and default event creating logic, just use onEmptyClick event or similar to create the new event.
i require the lightbox to open and also the event to be saved as soon as lightbox is opened.is thre any way that both could be achieved
You can
a) block default lightbox
b) execute your custom saving
c) execute your custom refresh
d) after new event appears you can call showLightbox with new event id
As result new event will be added and lightbox will be shown for it.
thnx will try it out
can tell me how to call the lightbox later on?
scheduler.showLightbox(event_id);
thanx