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. Image for the cookie policy date

Problem with resourceSettings datasource

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.

Thanks

Morgan


2 Replies

MO Morgan 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.

Morgan


KK Karthigeyan Krishnamurthi Syncfusion Team 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.   
   
Regards,   
Karthigeyan   
 


Loader.
Live Chat Icon For mobile
Up arrow icon