DHTMLX Grid export to CSV - error

Hi I am using DHTMLX grid smart rendering - where on scrolling i am rendering records on fly on scrolling - support provided by DHTMLX grid. But export to csv option - gives me csv on currently visible grid rows.

How can i have all the records available in csv(though not visible on grid) on export to csv - using the CSVGenerator class provided by you guys.

Unfortunately all rows should be rendered. You will have to disable smart rendering mode.