When using grid, the slide drop-down appears blank, and there is no data displayed after waiting for a few seconds





5 Replies 1 reply marked as answer

PK Prasanna Kumar Viswanathan Syncfusion Team October 21, 2020 03:20 PM UTC

Hi Renard, 
 
Thanks for contacting Syncfusion support. 
 
We checked the attached screenshot and found that the right side grid is not fill with the data. In your code example we found that you have not defined the dataSource for the both the grids. To proceed with your query we need the following details, 
 
1. In your code example we found that you have used this.http.getJsonData and also assign the data to the variable this.gridData. Can you please provide more information regarding this.gridData? 
 
2. In the attached screenshot we found that you have checked in the iPad mode in the chrome browser. Did you face the mentioned issue in iPad mode? 
 
3. Share the code example of rendering the data to the Grid 
 
4. Syncfusion Package Version. 
 
Regards, 
Prasanna Kumar N.S.V 



RE Renard October 22, 2020 06:13 AM UTC

1.It's also a problem on the iPad.
2.data.rar Contains the data source and the effect of this problem 





config.xml:

package.json




Attachment: data_8238b67e.rar


TS Thiyagu Subramani Syncfusion Team October 27, 2020 02:54 AM UTC

Hi Renard, 

Thanks for your update. 

Based on your shared information we have created a simple sample as per your requirement at our end.  But in our sample your reported issue doesn’t reproduced. By default for enabling the virtualization, the Grid should have more than 1000 records in its data source. So for few hundred rows it is not required and when there are more than 1000 records you can enable virtualization in the Grid for better performance. 
 
We suspect in your shared data.json file you have used 2434 data count and defined this data to Grid DataSource but after row Selection you have filtered this data to some value and bounded to grid. its may return less than 1000 records . So only your reported issue may occurs. 
 
Please refer to the below code and sample link. 
 
 rowSelected(args) { 
    this.groupOptions = { 
      showDropArea: false, 
      showGroupedColumn: false, 
      columns: ["FIELD1"] 
    }; 
    this.grid.dataSource = this.vData.filter( 
      or => or.FIELD2 == args.data.OrderID 
    ); 
    alert((this.grid.dataSource as any).length);  // result count 
    this.grid.refresh(); 
  } 
 
 
 
In your shared package.json you have used older and different version package versions. So, please follow the steps provided below to update npm package. 

  • Delete package.lock.json file from your application.  
  • Remove the @syncfusion package folder from the node_modules.
  • Use same version or “*”(Installs the latest packages) for all Syncfusion components in package.json file.  
  • Then install the NPM packages.  
           
Package.json 
"dependencies": {  
    "@syncfusion/ej2-angular-grids": "*", 
    "@syncfusion/ej2-base": "*", 
    "@syncfusion/ej2-data": "*", 
     .  .  .  .  .  .  .  . 
     .  .  .  .  .  .  .  . 
  } 


If still facing the issue, please share below details. 

  1. Share data count after row Selecting a row.
 
  1. If possible, share issue reproducing sample.
 
Please get back to us, if you need any further assistance. 

Regards, 
Thiyagu S. 


Marked as answer

RE Renard October 28, 2020 03:49 AM UTC

In your reference example link also found this problem, drag to the middle part of the data display, drag to the bottom has been displayed blank 

Please help me delete this post, because the previous screenshot involves customer data, thank you





TS Thiyagu Subramani Syncfusion Team October 29, 2020 02:04 AM UTC

Hi Renard, 

Thanks for your update. 

By default, grouping virtualization operates on the basis of blocks that are initially allowed to load and render rows only from the content viewport (pageSettings.pageSize). After scrolling, the next set of page records is made. For this case, if we reaches scroller to the bottom, grid may rendered rows less number of records. 

For example:  If we use total records as 1000 and pageSize as 30, initially 30 rows of grid render rows ad when scrolling down its render next set of 30 rows. Likewise if we reaches bottom (1000%30 = 10) it’s rendered only 10 rows but space allocated for next 30 rows. So we suspect your reported issue may occurs this reason. 

We cannot replicate the recorded problem when using pageSize as 52 (includes aggregate row also) based on total rows. Please refer to the following sample for reference. 


To overcome this issue we suggest to use infinite scrolling instead of virtual scrolling. Infinite scrolling is used to load a huge amount of data without degrading the Grid performance. This feature works like the lazy loading concept, which means the buffer data is loaded only when the scrollbar reaches the end of the scroller. 


Please get back to us, if you need any further assistance. 

Regards, 
Thiyagu S 


Loader.
Up arrow icon