Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ui grid performance issue with celltemplates

I am using angular-ui-grid 3.1.1 with 25,50,75 records at a time. Each cell is having different celltemplates e.g, onclick popovers, hover popovers, file download links, data with profile images, data in nested table etc. Data is rendering fine in the grid, however for some seconds ui grid becomes unresponsive.

Also i have created an external column chooser. While choosing a column to show/hide, the grid becomes unresponsive for some seconds.(same unresponsive behavior seen with in-built column chooser provided by ui-grid)

enter image description here

enter image description here

enter image description here

Please suggest any fix for this.

like image 887
user3816152 Avatar asked Apr 20 '16 11:04

user3816152


1 Answers

sadly, we've had to abandon UI grid for these same sort of issues. The issue, however was not in UI-Grid but in angular lacking performance. In my case I built a grid with ReactJS that I created a angular JS directive wrapper to put over. Even by just putting angular HTML with lots of rows/columns it wasn't fast enough. The last thing you could try before swapping away from UI-Grid would be looking into row/column virtualization if you dont already have it enabled. Here is the option to test

columnVirtualizationThreshold

like image 143
michael pilote Avatar answered Oct 17 '22 03:10

michael pilote