For some reason I can’t edit any columns in a grid. How can I do this? I have set myGrid.setEditable(true); I still can’t edit.
var myGrid = new dhtmlXGridObject(this.gridId);
myGrid.setHeader("Resource Type,Person,Effort,Cost");
myGrid.setInitWidths("100,100,50,50");
myGrid.setColAlign("left,left,left,left");
myGrid.setColTypes("coro,coro,edn,edn");
myGrid.setEditable(true);
//set values for select box in 5th column
var combobox = myGrid.getCombo(0);
combobox.put("1", "1 Hour");
combobox.put("12", "12 Hours");
combobox.put("24", "24 Hours");
combobox.put("48", "2 days");
combobox.put("168", "1 week");
combobox.put("pick", "pick up");
combobox.put("na", "na");
var combobox1 = myGrid.getCombo(1);
combobox1.put("1", "1 Hour");
combobox1.put("12", "12 Hours");
combobox1.put("24", "24 Hours");
combobox1.put("48", "2 days");
combobox1.put("168", "1 week");
combobox1.put("pick", "pick up");
combobox1.put("na", "na");
myGrid.init();
//just an example insert
myGrid.addRow(this.rowIndex, [1, 1, "3", "4"]);