Implement More Events Button in Week View of Scheduler - change the More button position

0 Answers 38 Views
Scheduler
B
Top achievements
Rank 1
B asked on 18 Jul 2024, 04:08 PM | edited on 18 Jul 2024, 05:28 PM

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

Nikolay
Telerik team
commented on 23 Jul 2024, 02:35 PM

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

B
Top achievements
Rank 1
commented on 23 Jul 2024, 07:49 PM | edited

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

Martin
Telerik team
commented on 26 Jul 2024, 01:08 PM

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) {

No answers yet. Maybe you can help?

Tags
Scheduler
Asked by
B
Top achievements
Rank 1
Share this question
or