|
<ejs-schedule id="schedule" dateFormat="dd/MM/yyyy" width="auto" height="800px" selectedDate="new DateTime(2018, 2, 15)" readonly="true" allowDragAndDrop="false" startHour="07:00" endHour="20:00" eventClick="onEventClick">
<e-schedule-timescale enable="true" interval="30" slotCount="1"></e-schedule-timescale>
<e-schedule-eventsettings dataSource="@ViewBag.datasource">
</e-schedule-eventsettings>
</ejs-schedule>
<script type="text/javascript">
function onEventClick(args) {
// You can perform the action here
}
</script> |
|
document.getElementById('schedule').ondblclick = function (args) {
if (args.target && args.target.classList.contains('e-appointment')) {
var schObj = document.getElementById('schedule').ej2_instances[0];
console.log(schObj.activeEventData);
}
}; |