Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by souma on Aug 04, 2008 00:38
open dhtmlx forum
events

i want to hide the third column by default in doInitGrid by the follwing line
mygrid.setColumnHidden (2,true);
after i add this code to show the column when the user edit a cell in another column

mygrid.attachEvent("onEditCell", doOnCellEdit);

function doOnCellEdit( )
{mygrid.setColumnHidden(2,false);
}
but when i edit any cell the column doesnt appear

i ask if there is any solution
thanks a lot
Answer posted by Support on Aug 04, 2008 01:30

Please be sure that you has defined some non-zero width for hidden column during grid initialization. 
Working sample sent by email. 

Answer posted on Aug 04, 2008 02:25

Answer posted by souma on Aug 04, 2008 02:29
i chek the width but it is diffrent from zero please hel[p me i cannot find the problem
thanks
Answer posted by Support on Aug 04, 2008 07:21
Please check sample, sent by email.
If issue still occurs for you - please provide any kind of sample where it can be reconstructed.