How can I show an event’s details on a custom click?
For example, I have a custom button and on that button’s click event I want to show an event’s details (considering I know the event’s id).
How can I show an event’s details on a custom click?
For example, I have a custom button and on that button’s click event I want to show an event’s details (considering I know the event’s id).
You can emulate “edit” button click:
var editBtnId = $$("scheduler").$$("edit").config.id;
$$("scheduler").callEvent("onItemClick",[editBtnId]);
If the event was not selected, you need to set cursor on it:
$$("scheduler").setCursor(eventId);
var editBtnId = $$("scheduler").$$("edit").config.id;
$$("scheduler").callEvent("onItemClick",[editBtnId]);
setCursor does not fit recurring events. Let me know if you need the solution for recurring events.
Thanks, exactly what I was needing!
Hi, how is it possible to show the event detail instead of the edit form?
Thank you very much!
Hi,
The view with event details is shown when you tap an event. And this view contains “edit” button. Did you mean that you want to hide the “edit” button ?
I’ve found it…
$$(“scheduler”).setCursor(app_id);
var editBtnId = $$(“scheduler”).$$(“event”).config.id;
$$(“scheduler”).callEvent(“onItemClick”,[editBtnId]);
$$(“scheduler”).$$(“event”).show()