Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Richard White on Nov 16, 2008 08:05
open dhtmlx forum
custom combo

hi

i have a combo in a cell of one grid and want to use the same combo as a custom combo in a cell in another grid. is there a way to copy the combo and then use it as a custom combo in the other grid celll

i tried it as follows:

var existingCombo= grid.getCombo(1);
var newCombo = newgrid.getCustomCombo(id,1);

newCombo = existingCombo

but this doesnt work, is there a way to do this?

thanks
Answer posted by Support on Nov 17, 2008 02:48
There is no way to share the same combo between different grid's
Technically the next code may work, but it may have unpredictable side effects

var existingCombo= grid.getCombo(1); 
newgrid.cells(id,1).cell._combo = existingCombo;


Answer posted on Nov 17, 2008 04:32
ok thanks, ill just create the same combo twice then