Is it possible to move the delete button from the view event to edit event?
Or, if it is not possible, if I create a button how can I call the delete event on that button’s click?
Is it possible to move the delete button from the view event to edit event?
Or, if it is not possible, if I create a button how can I call the delete event on that button’s click?
Check
if I create a button how can I call the delete event on that button’s click
Scheduler supporet common data API, you can use scheduler.remove(id) to remove any event.
Ok, thanks, but how do i get the id of selected event?
(considering i have created the button like:
{ view: “button”, id: ‘delBtn’, value:“del”, label:“delete”, type:“htmlbutton”, click:“deleteFunction()”}
)
var selected_event = $$("scheduler").getCursor();