This is a migrated thread and some comments may be shown as answers.

Overriding the CalendarWeekCell

2 Answers 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 15 Jun 2020, 08:19 AM

Hi!

I'm trying to override the CalendarWeekCell in the Calendar control for Vue.

My goal is really just to be able to receive a click-event when the user clicks a week-number.

 

I've checked this documentation: https://www.telerik.com/kendo-vue-ui/components/dateinputs/calendar/custom-rendering/#toc-cells-inside-the-week-column

but it seems wierd to register a global instance of a component just to be able to override this cell.

Is there any other way? Do you have an example?

Or, even better, would you concider exposing the on-click-event for the weeknumbers (typically used to select the whole week when the user clicks it).

 

Thanks!

 

Jon

 

2 Answers, 1 is accepted

Sort by
0
Jon
Top achievements
Rank 1
answered on 15 Jun 2020, 09:03 AM

Hi again!

Forget it, I got it to work finally.

But I still think it might be a good idea to expose the on-week-click event to remove the need for overriding the whole weekcell just to be able to respond to this click.

 

Thanks!

0
Accepted
Plamen
Telerik team
answered on 15 Jun 2020, 11:06 AM

Hi,

Thank you for sharing this feature. I have added it in out repository here and we will do our best to add it as soon as possible.

If you have other questions please don't hesitate to contact us again.

Regards,
Plamen
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Jon
Top achievements
Rank 1
Answers by
Jon
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or