Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Evgeny Borzenkov on Mar 25, 2008 08:06
open dhtmlx forum
has grid column property "hidden"?

I am loading grid from html table, I need there will be hidden columns. Has dhtmlx Grid property something like "hiddenColumn" or specific type?
Answer posted by Support on Mar 25, 2008 09:19
There is no special property, but it can be done by API
           grid.setColumnHidden(index);

While initializing from HTML it can be done as

<table name="mygrid" oninit="mygrid.setColumnHidden(1)" ....
Answer posted by Evgeny Borzenkov on Mar 25, 2008 09:37
It will be very good if you add property to the grid, because it is comfortable use hidden fields,
by the way I read in your knowledge base that function  setColumnHidden  works slowly.

P.S. I see js error:
mygrid.setColumnHidden is not a function
mygrid.setColumnHidden(1);
Answer posted by Support on Mar 25, 2008 10:41
>>P.S. I see js error: mygrid.setColumnHidden is not a function
Which version of grid you are using ? The setColumnHidden method  available only in pro version.