I have a test project at http://jsplayground.syncfusion.com/1bbis2ae
I want to set
resourceSettings: {
datasource: resourceData,
text: "text",
id: "id",
groupId: "groupId",
color: "color"
}
where resourceData is as follows:
var resourceData = [
{ text: "Nancy", id: 1, groupId: 1, color: "#f8a398" },
{ text: "Steven", id: 3, groupId: 2, color: "#56ca85" },
{ text: "Mary", id: 13, groupId: 2, color: "blue" },
{ text: "Joe", id: 15, groupId: 2, color: "red" },
{ text: "Michael", id: 5, groupId: 1, color: "#51a0ed" }
];
The above code will not work. However, if I use the this code the data is displayed:
resourceSettings: {
dataSource: [
{ text: "Nancy", id: 1, groupId: 1, color: "#f8a398" },
{ text: "Steven", id: 3, groupId: 2, color: "#56ca85" },
{ text: "Mary", id: 13, groupId: 2, color: "blue" },
{ text: "Joe", id: 15, groupId: 2, color: "red" },
{ text: "Michael", id: 5, groupId: 1, color: "#51a0ed" }
],
text: "text",
id: "id",
groupId: "groupId",
color: "color"
}
Am I missing something?