Custom properties for resources dataSource to bind in groupHeaderTemplate

2 posts, 0 answers
  1. Naga gopichand
    Naga gopichand avatar
    7 posts
    Member since:
    Jul 2016

    Posted 13 Jul 2016 Link to this post


    I am using kendo UI Scheduler and my resource entity employee has properties like role.I was not able to access the role into groupHeaderTemplate.


    groupHeaderTemplate: "<div class=alignleft><strong><i>#=text#</i><br>#=role#</strong></div>"

    Unfortunately i get referrence error : role is not deined.

    Below is my data

            text: "Adams",
            value: 1,
            role: "Supervisor"
        }, {
            text: "Anderson",
            value: 2,
            role: "Sr. Agent"


    I've been looking around within the documentation but I didn't find a way 

    Can i get a help with the possibilities to achieve this.



  2. Vladimir Iliev
    Vladimir Iliev avatar
    2190 posts

    Posted 15 Jul 2016 Link to this post

    Hello Naga,

    Please note that custom resource fields are not passed to the Scheduler template, however you can access them using custom code. Please check the example below:

    Vladimir Iliev
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top