Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jun 11, 2008 08:09
open dhtmlx forum
Hiding dhtml check box for a particular row

I have set ch for a row in my dhtml grid. But i dont want the checkbox to be coming up on tha last row of the table. Is there a way to get this done?
Answer posted by Support on Jun 11, 2008 09:50
Answer posted on Jun 11, 2008 21:05
Let me know if it is possible to acheive the same using java script
Answer posted by Support on Jun 12, 2008 01:58
Yes, the same can be done from js code as

grid.setColTypes("ro,ch");   // second in checkbox
...
grid.addRow(123,[1,1]]); // second cell is checkbox

grid.addRow(124,[1,1]]);                // second cell is checkbox
grid.setCellExcellType(124,1,"ro"); // changing type to the ro
grid.cells(124,1).setValue("");        // set empty value