Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Paul Fleishman on May 23, 2008 08:17
open dhtmlx forum
Grid Print does not work right when used paging

Hi,

When grid paging is enabled and grid shows 1 - 20 of 200 that is on first page. now if we use printView() then it gives only first page data. if I navigate to second page then print view gives two pages data. If i navigate to last page then it shows all pages data.

I need to have that when grid loaded first page it self then printView needs to produce all data from the grid.

Thanks
Answer posted by Support on May 23, 2008 09:17
This is known issue, to resolve it in dhtmlxgrid 1.5   - only parsed rows included in printView
To resolve issue, you can add next command before printView

    while(mygrid.addRowsFromBuffer());
    mygrid.printView();

first command will parse all rows in buffer so printView will include all rows in grid.