I have a grid,and column where I’d like to include-exclude options for every row.But I need to register different CList for every row. Is it possible to done it,and how can be done it,if is it possible?Any other solutions is good to hear well
You can use registerCList() method to change clist options
docs.dhtmlx.com/doku.php?id=dhtm … ells#clist
Thanks a lot for your help,but I try to manage this with this code
mygrid.cells2(0,2).cell._combo = ["First Name","Last Name","City","Country"];
mygrid.cells2(1,2).cell._combo = ["Questions","Answers"];
and it works. Now I want to know how to add action on a apply button on CList.Can you give an example how to done this?
You can use onEditCell stage 2
grid.attachEvent("onEditCell", function(stage,id, ind, new_value ){
if (stage == 2 && ind == INDEX ) do_something(new_value);
return true;
});
where INDEX - index of clist column