Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by mia on Nov 13, 2007 06:25
open dhtmlx forum
grid.printView functionality

hi,

i would like to ask is it possible for me to add external css into printView popup window and limited the grid content to the first 1000 records returned by server?Thank you.

Regards,
mia
Answer posted on Nov 13, 2007 07:17
There is no API code for such purpose, but you can update code of popup generation in dhtmlxgrid_nxml.js

line 391
   var html="<style>TD { font-family:Arial; text-align:center;} </style>";
    html+="<link rel='STYLESHEET' type='text/css' href='custom.css'>"; //adding custom styles
    html+="<base  href='"+document.location.href+"'></base>";


line 411
    if (row_length>1000) row_length=1000; // limit to max 1000 record
    for (var i=0; i<row_length; i++) {