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

Access Scheduler Resources in Event Template

2 Answers 170 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 11 May 2016, 07:15 PM

Hi,

Is there a way to access scheduler resources inside the Event Template?

For instance:

Course Resource - List of courses with CourseID and CourseTitle.

Event Template - 

.EventTemplate(
        "<div style=color:#:setTextColor(data)#>" +
        "<h4>Course: #= CourseTitle # </h4>" +     
        "<h5>Class: #= title # </h5>" +
        "</div>"
    )

"<h4>Course: #= CourseTitle # </h4>"  would be returned by the foreign key ID from the viewModel record to the Course Resource primary key.

2 Answers, 1 is accepted

Sort by
0
Accepted
Nencho
Telerik team
answered on 13 May 2016, 01:12 PM
Hello Christopher,

I would suggest you to refer to the following thread, describing how the desired implementation could be achieved:

http://stackoverflow.com/questions/31083055/referencing-fields-in-a-custom-event-template-for-kendo-scheduler

Regards,
Nencho
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
0
Chris
Top achievements
Rank 1
answered on 13 May 2016, 02:39 PM
Thank you Nencho!!
Tags
Scheduler
Asked by
Chris
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Chris
Top achievements
Rank 1
Share this question
or