Categories | Question details Back To List | ||
Accessing CORO Elements Iam using grid v1.6 and i have a coro defined in my grid as follows: <column width="100" id="tableName" type="coro" align="center" sort="str">Name <option value="9">John</option> <option value="11">Sam</option> <option value="12">Smith</option> <option value="15"> Cody</option> <option value="14">Tony</option> </column> Now when the user selects a name from the coro i dont want the name to be availiable again to the user. For example if i select the name "John" in the first row. I dont want John to be availiable as an option in the second row. How can I achieve this? Answer posted by Support on Sep 08, 2008 08:58 Next code can be used to delete option from select's collection mygrid.getCombo(index).remove(14); http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Selectbox_collections.html#grid_art_selectbox In your case it has sense to place such code in onEditCell handler, stage 2 of which generated when value selected and receives new value of cell. |