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

Change date title to week of year

1 Answer 70 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
hanna
Top achievements
Rank 1
hanna asked on 29 Oct 2015, 10:06 AM

Hello

First, is it possible to modify the source code of the free trial?

If it is possible:

It is the date title i want to change, see picture.
To change the date to the week number where in the javascript should I change? And which amendment should I do?

Grateful for all the help I can get

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 30 Oct 2015, 08:15 AM
Hello Hanna,

Modifying the toolbar template currently is not supported out of the box and it will require custom code. For example you use the "dataBound" event of the Scheduler to access the internal "_model" and set it's "formatted" date field:

var scheduler = $("#scheduler").getKendoScheduler();
  
var startDate = scheduler.view().startDate();
var endDate = scheduler.view().endDate();
  
scheduler._model.set("formattedDate", startDate.getFullYear() + " to " + endDate.getFullYear());
 
Regards,
Vladimir Iliev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Scheduler
Asked by
hanna
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or