Posted 16 June 2020, 3:03 am EST
Hi,
The isSelected property of Row, by which the checkbox is bound, will update the CSS of the rows. We cannot change this behavior. But, there is another way by which you can reduce the number of cells displayed and also remove the vertical scrollbar.
You can use paging in the flexgrid. This will display less number of rows on a single page, thereby increasing the performance.
Now, there are two types of paging, the default one is the collectionview paging. In this type, the flexgrid is only bound to the data displayed on the current page. For example, if there are 200 items and the pageSize is 10, then the grid will be bound only to the 10 items. It will not know anything about the remaining 190 items.
Demo of paging: https://www.grapecity.com/wijmo/demos/Grid/PagingScrolling/Client-sidePaging/react
But this paging may cause issue in your application because if you will select all the items, then only the displayed 10 items will be selected and the other 190 will not.
The other type of paging is the FlexGrid level paging. This paging uses the FlexGridPager class to implement paging on the grid level so the grid knows about all the 200 items but displays only the 10 items. This class is not shipped with our Wijmo package so we have created a demo to implement it.
Demo: https://demos.wijmo.com/5/PureJS/FlexGridPager/FlexGridPager/
Source code: https://demos.wijmo.com/5/SampleExplorer/SampleExplorer/Sample/FlexGridPager/PureJS/Code
I hope this helps.
~regards