Hello,
I’m using dhtmlx grid and one of the column is clist
example is here how to use clist
dhtmlx.com/docs/products/dhtmlxG … extra.html
mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setHeader(“Sales,Book Title,List,Calculator,New Checkbox,Image”);
mygrid.setColTypes(“dyn,ed,clist,calck,acheck,img”);
mygrid.registerCList(2,[“Stephen King”,“John Grisham”,“Honore de Balzac”]);
is it possible to put data for clist in format key-value or id-value?
like this:
mygrid.registerCList(2, [
{value: “1”, text: “Stephen King”},
{value: “2”, text: “John Grisham”},
{value: “3”, text: “Honore de Balzac”}
]);