Virtualization and Observable not work

Hello,

I create a TreeGrid, it works if DataSource is a Observable<DataResult>, but not if I enable virtualization.
If virtualization is activate, DataSource of DataResult type doesn't work...

If 
DataSource is an Array, it work's but expands row action fail with the message: 
Cannot read property 'push' of undefined

Code fails: treegrid.js [2471]
                for (var j = 0; j < expandingArgs.childData.length; j++) {
                    data_1.push(expandingArgs.childData[j]);
                }

data_1 value is result of dataSource, but DataSource is a Array, if I set DataResult, the TreeGrid not show the result (if virtualization is enable).

I need to use the TreeGrid with only parent elements at first, then if the row unfolds, I will want to load the child elements remotely, and activate virtualization, are possible?

Best Regards,

Robin

8 Replies

RG Robin GUERIN May 26, 2020 08:15 AM UTC

can someone please help me ?


PK Padmavathy Kamalanathan Syncfusion Team May 26, 2020 01:08 PM UTC

Hi Robin,

We are validating the reported issue with highest priority and we will update further details on May 28,2020. In the mean time, we request you to provide the below details which will help us to validate the issue effectively,
  1. Complete Tree Grid rendering code 
  2. Share us your product version 
  3. Screenshot of error with stack trace and video demo
  4. If possible, share us dummy data similar to your data
Regards,
Padmavathy Kamalanathan



RG Robin GUERIN May 27, 2020 02:13 PM UTC

Hi,

This exemple dosen't work with type Observable<DataResult> : https://stackblitz.com/edit/angular-ivy-qsqv57


SE Sathyanarayanamoorthy Eswararao Syncfusion Team May 28, 2020 06:18 PM UTC

Hi Robin, 

Query: This exemple dosen't work with type Observable<DataResult> : https://stackblitz.com/edit/angular-ivy-qsqv57 
 
We have checked the provided sample and found that you have not defined the fields that are required for the hierarchy mapping in treegrid. So, the dataSource is not getting bound to the TreeGrid. So, to avoid the issue we suggest you to define the required fields i.e.( idMapping and parentIdMapping) for the TreeGrid. 
 
Refer the below api documentation and code example for more details. 
 
Api Links: 
 

 
<ejs-treegrid 
  [dataSource]="tasks | async" 
  hasChildMapping="isParent" 
  parentIdMapping="ParentID" 
  idMapping="id" 
  [editSettings]="editSettings" 
  [toolbar]="toolbar" 
  height="470" 
  (dataStateChange)="dataStateChange($event)"> 
  <e-columns> 
    <e-column field="id" headerText="Task ID" width="120" textAlign="Right" isPrimaryKey="true" type="number"></e-column> 
    <e-column field="TaskName" headerText="Task Name" width="225"></e-column> 
    <e-column field="StartDate" headerText="Start Date" width="150" format="yMd" type="datetime" editType="datepickeredit"></e-column> 
    <e-column field="Duration" headerText="Duration" type="number" textAlign="Right" width="130" editType="numericedit"></e-column> 
  </e-columns> 
</ejs-treegrid> 
 
 
We have prepared a sample using Observables Data Binding for your reference. Please refer the below link for the sample. 
 
 
Regards, 
Sathyanarayanamoorthy 



RG Robin GUERIN May 29, 2020 07:50 AM UTC

Hi,

Can you send me the same exemple but with enabled virtual scrolling, remote data type and virtual scrolling at the same time don't work.

Regards,

Robin




PK Padmavathy Kamalanathan Syncfusion Team June 1, 2020 11:55 AM UTC

Hi Robin,

Sorry for the inconvenience caused.

Currently we do not have support for Virtualization with Custom Data Binding. We will mark this as feature improvement and provide "Virtualization Support for Custom Data Binding" in Tree Grid. The improvement will be rolled out in our 2020 Volume 2 SP1  release which is expected to be rolled out at the end of July 2020.

 
You can track the current status of your request, review the resolution timeline and contact us for any further inquiries through this link, 
 
 
 
Note: To view the above feedback, kindly login into your account. 
 

 
Kindly get back to us for further assistance. 

 
Regards, 
Padmavathy Kamalanathan 



MM Morgan MARGOT August 6, 2020 08:22 AM UTC

Hello, this ticket was declared 1 month ago... 

Please let me know when it will be fixed ?  estimate date for 2020 Volume 2 SP1 ?

Thanks



PK Padmavathy Kamalanathan Syncfusion Team August 7, 2020 02:17 PM UTC

Hi Morgan,

Virtualization support for custom data binding will be included in Volume 3 2020 release which is expected to be rolled out on September 2020.

Regards,
Padmavathy Kamalanathan


Loader.
Up arrow icon