Access Scheduler Resources in Event Template

3 posts, 1 answers
  1. Christopher
    Christopher avatar
    24 posts
    Member since:
    Mar 2016

    Posted 11 May Link to this post

    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. Answer
    Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 13 May Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Christopher
    Christopher avatar
    24 posts
    Member since:
    Mar 2016

    Posted 13 May in reply to Nencho Link to this post

    Thank you Nencho!!
Back to Top