2 combo columns in RC1??
Hello,
Does anyone have an example on how to create two different columns on a grid with combo boxes?
Rob's example like this:
// BEGIN COMBO POPUP CODE
rowCombo = new AW.Templates.Combo;
obj.setCellTemplate(rowCombo, 0);
obj.setPopupTemplate(function(col, row){
var grid = this;
var list = new AW.UI.List;
list.setItemText(["First Name", "Last Name", "Email"]);
list.setItemCount(3);
list.onItemClicked = function(event, i){
var text = this.getItemText(i);
grid.setCellText(text, col, row);
grid.setCellValue(text, col, row);
grid.getCellTemplate(col, row).hidePopup();
}
return list;
});
// END COMBO POPUP CODE
+++++
works just fine. Except a few things: I have no clue on how to create another one column using this technique??
Does anyone have a clue?
And another issue: does anyone have a solution fixing items highlighting bug, if one will use a technique shown above?
Thanx,
Does anyone have an example on how to create two different columns on a grid with combo boxes?
Rob's example like this:
// BEGIN COMBO POPUP CODE
rowCombo = new AW.Templates.Combo;
obj.setCellTemplate(rowCombo, 0);
obj.setPopupTemplate(function(col, row){
var grid = this;
var list = new AW.UI.List;
list.setItemText(["First Name", "Last Name", "Email"]);
list.setItemCount(3);
list.onItemClicked = function(event, i){
var text = this.getItemText(i);
grid.setCellText(text, col, row);
grid.setCellValue(text, col, row);
grid.getCellTemplate(col, row).hidePopup();
}
return list;
});
// END COMBO POPUP CODE
+++++
works just fine. Except a few things: I have no clue on how to create another one column using this technique??
Does anyone have a clue?
And another issue: does anyone have a solution fixing items highlighting bug, if one will use a technique shown above?
Thanx,
Paul
February 9,