Grid with combo (text and values)
Hello,
I'm using a grid in combination with a combo object.
The only problem is how do I get the combo value in stead of the combo text.
I'm using this code:
And to read the selected values, I use:
I also tried :
But that returns nothing.
Thanks in advance!
I'm using a grid in combination with a combo object.
The only problem is how do I get the combo value in stead of the combo text.
I'm using this code:
For (colNumber = 0; colNumber < numberOfCombos; colNumber++) {
var template = new AW.UI.List;
template.setItemText(["A","B","C"]);
template.setItemValue(["1","2","3"]);
template.setItemCount(3);
grd.setCellTemplate(new AW.Templates.Combo, colNumber);
grd.setCellValue(true, colNumber);
grd.setPopupTemplate(template, colNumber);
}
And to read the selected values, I use:
alert(grd.getCellText(colCounter, rowCounter));
I also tried :
alert(grd.getCellValue(colCounter, rowCounter));
But that returns nothing.
Thanks in advance!
J Hollemans
August 10,