Hi Anilkumar,
Thanks for your update
Query : Even if we do implement pagination also we would be loading bunch of records and ejs-menu is going to be render for each row right. How can we overcome this issue ?
When we using infinite scrolling in the grid we have rendered minimum 150+ rows in the DOM. so the grid having 150+ EJS Menu control in the DOM which leads performance issue.
To avoid rendering large number of Menu control in the DOM, we suggest you to use pagination in the grid. grid paging is depends grid datasource length and pageSize . by default the grid pageSize is 12. So 12 rows (12 menu control) only rendered in DOM. now we can avoid the performance issues in grid.
If we moving to another page we have removed the previous page’s rows from the DOM and appended new rows of current page to the DOM.
If you having bunch of records we divided it by pageSize (12) and rendered only 12 records by page. You can also change the page size by below documentation.
Note : when using pagination you don’t need infinite scrolling.
Please get back to us if you need further assistance on this.
Regards,
Rajapandiyan S