Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Apr 30, 2008 14:24
open dhtmlx forum
DhtmlxGrid Print

I have two grids on an asp.net page where the second grid loads based on the selected row in the first grid. I also have some labels on my page which display the current selected employee. I would like to customize the print function of grid to display both the grids on the page and aslo the employee labels. How can i do this?
Answer posted by Support on May 02, 2008 05:42
There is no easy way, you may try to customize the printView function ( stored in dhtmlxgrid_nxml.js )
Also, if you are using latest version (attached) you can try to use next trick

    var html="";
    mygrid1.parentGrid=true;   // will set fake subgrid mark
    mygrid2.parentGrid=true;
    html+=mygrid1.printView(); //get html for first grid
    html+=" any custom output here "
    html+=mygrid.printView();   // get html for second grid

     var d = window.open('', '_blank');
      d.document.write(html);
      d.document.close();


Answer posted by Support on May 02, 2008 05:44

Attachments (1)