Issues with Grouping on Schedule control

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

2 Replies

AM Ameet August 22, 2018 10:13 PM UTC

My fault. Got this issue resolved. Forgot JSON fields were case sensitive. My DB was returning back field all caps :(

Thanks,

Ameet


AA Arulraj A Syncfusion Team August 23, 2018 04:46 AM UTC

Hi Ameet, 
 
Thanks for the update. 
 
We are glad to know that the reported problem has been resolved. Please let us know if you have any further queries on this, we are happy to help you. 
 
Arulraj A  


Loader.
Up arrow icon