Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jul 05, 2009 08:47
open dhtmlx forum
Coro DHTMLX Grid

I have a grid in which one of the column type is a coro. When my users select an item in the coro i don't want that item to be available in the coro for the subsequent rows. How can i achieve this functionality?
Answer posted by dhxSupport on Jul 06, 2009 00:38
You can use "onEditCell" event and delete selected item from the "coro" options:
mygrid.attachEvent("onEditCell",function(stage,rowInd,cellIndex,newValue,oldValue){
if (stage==2&&cellIndex==CORO_CELL_INDEX){
var combo=getCombo(CORO_CELL_INDEX);
combo.remove(newValue);
return true;
}
return true;
});

Please see more information about managing select box collection here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Selectbox_collections.html#grid_art_selectbox