Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Gayathri on Oct 30, 2007 08:44
open dhtmlx forum
Changing column type in run time

Hi,
During runtime, based on some condition, i want to change the column type from combo to ordinary text box. I assume setColTypes doesnt work after loading the XML. Is there a way to achieve this please? Any help in this regard will be great. Thanks in advance.
Answer posted on Oct 30, 2007 09:21
You can change cell type on the fly by


    grid.setCellExcellType(rowID,columnIndex,new_type);

or for all cells in same row or column

    grid.setRowExcellType(
    grid.setColumnExcellType(