Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ez on Apr 24, 2009 02:23
open dhtmlx forum
Hidden columns are visible in printView

When I set column to hidden:

mygrid.setColumnHidden(6)

and then call:

mygrid.printView()

In print output I can see hidden columns
Answer posted by dhxSupport on Apr 24, 2009 07:00
We cannot reproduce this issue locally. What version of dhtmlxGrid do you use? Please send us any kind of sample where we can reproduce this issue. You can send it directly to the support@dhtmlx.com
Answer posted by ez on Apr 24, 2009 07:30
I notice that:

hiding column by:

setColumnHidden(6) will hide column in grid view but not in print view

setColumnHidden(6,true) works in both cases
Answer posted by Support on Apr 24, 2009 07:59
Actually the second parameter of setColumnHidden is mandatory, usage of 
        setColumnHidden(6)
is equal to the 
         setColumnHidden(6,false)
which reveal column, not hide it.