We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problem with resourceSettings datasource

Thread ID:





125081 Jul 20,2016 11:27 AM UTC Jul 21,2016 05:01 AM UTC JavaScript 2
Tags: ejSchedule
Asked On July 20, 2016 11:27 AM UTC

I have created a sample at http://jsplayground.syncfusion.com/cpb2dtrk

I am having a problem with the following section of code (Line 161 in above sample):

        resources: [
               field: "ownerId",
               title: "Owner",
               name: "Owners",
               allowMultiple: true,
               resourceSettings: {
                   dataSource: [
                       { text: "Jamie", id: 1, groupId: 1, color: "#f8a398" },
                       { text: "David", id: 3, groupId: 1, color: "#56ca85" },
                       { text: "Josh", id: 5, groupId: 2, color: "#51a0ed" }
                   //datasource: window.StudentNames, //dManagerStudent,
                   text: "text", id: "id", groupId: "groupId", color: "color"

If I use the code in green the result is as expected.
However, if I use the code in yellow I get nothing.

Bothe "datasource:  window.StudentNames" OR "datasource:  dManagerStrudent" fail.

How can I get the datasource to work in this way?

NOTE that 
appointmentSettings: {
            dataSource: window.EventsData, // OR  dManager,
Work as expected. I dont have to hard code the data.



Replied On July 20, 2016 12:42 PM UTC

Please ignore previous message.

I have spotted a typing error. Used the word "datasource" not "dataSource".

Sorry for any inconvenience.


Karthigeyan Krishnamurthi [Syncfusion]
Replied On July 21, 2016 05:01 AM UTC

Hi Morgan,   
Thank you for contacting Syncfusion support.   
We are happy to hear that your issue has been resolved by yourself.   
Please let us know if you need further assistance.   


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon