AUTHOR: Peter Milchev
DATE POSTED: June 05, 2019
Change the default behavior of the "Show More..." button in MonthView of the Scheduler.
Solution 1): Override the functionality of all Schedulers
<script>
// Override all schedulers' show more button click
Telerik.Web.UI.RadScheduler.prototype._onShowMoreClick =
function
(e) {
$telerik.cancelRawEvent(e);
var
slot =
this
._activeModel.getTimeSlotFromDomElement(e.eventMapTarget);
//return this._switchToSelectedDay(slot.get_startTime());
//Navigate here to the custom page
window.location.href =
"https://google.com"
;
return
false
}
</script>
Solution 2): Override the functionality of a single Scheduler
<telerik:RadCodeBlock runat=
"server"
>
// Override a single scheduler's show more button click
changeMoreButtonClickFunction() {
scheduler = $find(
"<%= RadScheduler1.ClientID %>"
);
$telerik.$(scheduler.get_element()).find(
".rsShowMore"
)
.off(
"click"
.on(
,
slot = scheduler._activeModel.getTimeSlotFromDomElement(e.target);
});
Sys.Application.add_load(changeMoreButtonClickFunction);
</telerik:RadCodeBlock>
Resources Buy Try