Still new to this tool. Having issues with getting resources from url. Here is my code -
new DataManager({
url: MyREst URL, // Here pass your REST WEB API load data
adaptor: new UrlAdaptor
}).executeQuery(new Query()).then((e: ReturnOption) => {
this.resourceDataSource = <Object[]>e.result;
this.eventSettings = { dataSource: this.dataManger };
}).catch((e) => true);
But I still get the following screen -
But if I hardcode the resources as following -
this.resourceDataSource = [ { CalendarText: 'Hindu Calendar', CalendarId: 1, CalendarColor: '#c43081' }
];
this.eventSettings = { dataSource: this.dataManger };
I get the following screen -
Can someone help me with this?
Thanks,
Ameet