Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Oct 21, 2008 06:07
open dhtmlx forum
Printable view problem

In my grid I have cell with number value 12.00 (type run) with custom format like this:

mygrid.setNumberFormat("0,000.00",6,","," "); -> this render valute as 12,00

When I switch to print view:

mygrid.printView()

I have my 12,00 value cut down to 12, but 12,13 are formated correctly to 12,13.
So, the problem is that printView removes ",00" part from numbers

Answer posted by Support on Oct 21, 2008 07:46
Add next line before init code of grid 

eXcell_ron.prototype.getContent = eXcell_ron.prototype.getTitle;

It will change behavior of printView - so it will include the data exactly the same as its shown in grid for ron type columns.