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

Custom properties for resources dataSource to bind in groupHeaderTemplate

1 Answer 80 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Naga gopichand
Top achievements
Rank 1
Naga gopichand asked on 13 Jul 2016, 08:16 PM

Hi,

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.

 

 

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 15 Jul 2016, 07:25 AM
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:

Regards,
Vladimir Iliev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Scheduler
Asked by
Naga gopichand
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or