Not working with custom DataManager

I'm using a custom adapter as dataSource for dropdown tree. It's not working.
It works if I pass the original array directly.

class SerialNoAdaptor extends WebApiAdaptor {
    public processResponse(): object {
        let original = super.processResponse.apply(thisarguments);
        original.forEach((item=> {
            if (item.ParentId === '0') {
                delete item.ParentId;
            }
        });

        console.log(original);
        return { Items: originalCount: original.length };
    }
}


  1. Why doesn't the datasource accept a promise? If it does, how do I show a loader.
  2. I have multiple dataTrees in an ngfor, and content from all is shown in the first one. PFA screesnhot  of how tress from different drop downs are shown in one.


Attachment: fad_a5c7ba96.rar

2 Replies 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team December 18, 2020 03:19 AM UTC

Hi Satish,  
  
Greetings from Syncfusion support. 
  
Currently, we are validating your reported problem with TreeView component. We will update the details within three business days on 23rd December 2020. 
  
We appreciate your patience. 
  
Regards,  
Sowmiya.P 



SP Sowmiya Padmanaban Syncfusion Team December 23, 2020 11:54 AM UTC

Hi Satish Gandham,  
 
Thanks for your patience. 
 
We have already updated the solution for your reported query in another incident I307789. Please follow that incident for further updates regarding your requirement. 
 
Please let us know, if you need any further assistance. 
 
Regards,  
Sowmiya.P 


Marked as answer
Loader.
Up arrow icon