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