Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kunal on May 25, 2009 01:51
open dhtmlx forum
adding a checkbox in each row

Hello,

I have already imported the .js file....but i'm looking for the function declaration...

either

resultDhtmlxGrid.setColTypes("ch");

OR

resultDhtmlxGrid.setColumnExcellType(colIndex,type); ----where to declare these???

Answer posted by dhxSupport on May 25, 2009 02:05
setColTypes() method is used to declare all columns types before grid initialization.
setColumnExcellType(colIndex,type) is used to change dinamically column type after grid was initialized. You should call this method after grid was fully loaded:
mygrid.load("grid.xml",function(){
mygrid.setColumnExcellType(colIndex,type);
})