Hello,
Requirement to implement 'More' button in Week view of MVC scheduler as Month view has.
I tried suggestion given in this article https://docs.telerik.com/kendo-ui/knowledge-base/implement-more-events-button-in-week-view
example is here https://dojo.telerik.com/IGOQinES.
Want to change two points,
1. The position of More button from bottom of the slot to right side of the slot shown as in below image.
2. Slot with single appointment also showing 'More' button, why?
Appreciate for the support.
Thanks,
BP
Hello BP,
You can adjust the MORE_BUTTON_TEMPLATE styles to position the View More button as desired, for example:
MORE_BUTTON_TEMPLATE: kendo.template( '<div style="left:#=left+width-12#px;top:0px; height:65px; width:12px;" class="k-more-events k-button"><span style="white-space: nowrap; transform: rotate(90deg);">View More</span></div>' ),
Updated Dojo: https://dojo.telerik.com/IGOQinES/2
As it comes to point 2. I do not see such a multiplication of the button. Am I missing something?
Regards,
Nikolay
Hi Nikolay,
Thanks for the reply.
Your suggestion is also working,
One more thing, I just want to display 3 appointments in a slot, if more than that then show this 'View More' button and don't display rest of the appointments for that slot, like 'EventPerDay' functionality Month View has.
Thanks,
BP
Hello,
When the View More button will be rendered is determined by this check in the _positionEvent function. Currently it is set to render the button when there are more than 3 events in the cell.
if (events.length > 3) {