3.2.0

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,
Paul
February 9,
As far I understood, the issue is all about return value, so I set:

if(col == 0){
return list;
} else {
return list2;
}

and it gave me what I wanted ;)

Any other solutions...?
Paul
February 9,
Paul,

this is correct solution. The highlighting bug is fixed in 2.0 final. You might be able to correct this in RC1 if you change /source/lib/system/control.js

line 616: if (e.getAttribute("aw")){
to: if (e && e.getAttribute("aw")){

line 623: if (e.getAttribute("awx")){
to: if (e && e.getAttribute("awx")){

and the same for lines 632 and 638.
Alex (ActiveWidgets)
February 9,
Thank you, Alex, I will try that.
Getting back to my previous discussion with you: I guess RC1 will be more or less enough for me in order to evaluate your product and make a decision.
Paul
February 9,
I tried the same approach but when I scroll the grid and click on the combo, the list popup is not appearing below the combo but way below the activated combo. Any thought on this? I'm using 2.0.0 final version with IE browser. Thanks in advance!
drachir
June 22,

This topic is archived.

See also:


Back to support forum