Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by richard white on Mar 23, 2009 13:56
open dhtmlx forum
sub grid getValue

hi

we have a column in a sub grid that has a combo attached to it. when we double click the cell it shows the drop down box fine, we select an option and it also shows the text fine. however each item in the drop down combo has an id (1,2,3) and a text value that is displayed ("One","Two","Three")

when we use the getValue method on this cell it shows the number 1,2,3 instead of textual displayed value One,Two,Three....

this is also fine but we also want to get the actual displayed value, how do we do this please

thanks
Answer posted by dhxSupport on Mar 24, 2009 02:41

To get actual value of the "combo" cell you can use method getText() instead of getValue():

subGrid.cellById(rowId,cellIndex).getText();