I want to change doulbe click to click on webmonthview, but it doesn't work. it can work on webdayview.
Any help, thanks in advance.
// WebDayView doublclick -> click
BLOCKED SCRIPT
function WebDayView_Click(oDayView, oEvent, element) { oDayView._onHandleEvent(element, { type: 'dblclick', myDayEvt: true }); } function WebDayView_DblClick(oDayView, oEvent, element) { var btnOverride = document.getElementById("<%=btnOverride.ClientID %>"); if ((!oEvent.event.myDayEvt) || (btnOverride.value == "Override" && element.className.indexOf("igdv_NonWorkingTimeSlot") > -1)) { oEvent.cancel = true; return false; } }
c#: myWebDayView.ClientEvents.DblClick = "WebDayView_DblClick"; myWebDayView.ClientEvents.Click = "WebDayView_Click";
// WebMonthView doublclick -> click
BLOCKED SCRIPT function WebMonthView_Click(oMonthView, oEvent, element) { oMonthView._onHandleEvent(element, { type: 'dblclick', myMonthEvt: true }); } function WebMonthView_DblClick(oMonthView, oEvent, element) { if (!oEvent.event.myMonthEvt) { oEvent.cancel = true; return false; } }
c#: myWebMonthView.ClientEvents.DblClick = "WebMonthView_DblClick"; myWebMonthView.ClientEvents.Click = "WebMonthView_Click";
Hello guy!
I once faced the same problem as yours. I found that it was when you had DblClick and Click both, and click the appointment, only Click could fire. In additional, some method need double click such like SchedualInfo's ClientEvets would not fire too.
However, I have not found a good solution for this. But I found that if you double click the space part of the WebMonthView cell instead of clicking the appointment those method will fire as normal.
blue: appointment part, only click can fire if you have both.
yellow: space, double click only fire in this area when you have both.