Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Awkash on Jan 14, 2008 02:05
open dhtmlx forum
how to refer individual combo box in column

Hi,
I am using dhtml grid

My requirement is

1. I defined coro type column

2. Now i want to update the combos contained in this coloumn dynamically

but when i try to do it like

combo=mygrid.getCombo(3);

combo.put(key,value );

it updates all the combo of that colomn not a perticular combo

How to overcome this problem

Please suggest some solution

regards
Awkash
Answer posted by Support on Jan 14, 2008 02:46
By default, list of options is common for all rows in same column.
Starting from dhtmlxgrid 1.4 it was possible to define different options sets for different rows from xml
In latest version it possible to do by JS API as well

Instead of
    combo=mygrid.getCombo(3);
you can use
    combo=mygrid.getCustomCombo(rowID,3);
where rowID - id of row, for which combo need to be taken

Please beware that getCustomCombo will work only if row in question already exists in grid.