Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Seetharaman Srinivasan on Oct 24, 2008 10:43
open dhtmlx forum
dhtmllgrid printview



Can I concatenate the printview of multiple grids into one as one below the other ?

How do I fire window.print() immediately after opening that view?

Answer posted by Support on Oct 27, 2008 03:19
>>of multiple grids into one as one below the other 
There is no "legal" way, but next trick can be used 
      grid1.parentGrid=true;
      var html=grid1.printView(); //when parentGrid flag is set, printView method will return HTML code of view
      delete grid1.parentGrid;

      grid2.printView(html,"")

>>How do I fire window.print() immediately after opening that view?
     Can't be done without code modification, you may add 
        d.print();
     at end of printView method in dhtmlxgrid_nxml.js