3.2.0

Template Combo Popup Drop Down Problems

If you click away from the combo drop down within the Grid it doesn't disappear

I have read this being a bug in the early realise and tried the fixes but it still fails in FF

Here is example code, click the drop down and then click away and the drop down fails to disappear

// combo in the header
var combo1 = new AW.UI.Combo;
combo1.setItemText(["a", "b", "c", "d"]);
combo1.setItemCount(4);

// popup for the grid body
var list2 = new AW.UI.List;
list2.setItemText(["item1", "item2", "item3"]);
list2.setItemCount(3);

var grid = new AW.Grid.Extended;
grid.setId("grid2");
grid.setHeaderCount(2);
grid.setHeaderText("header");
grid.setCellText("cell");
grid.setColumnCount(4);
grid.setRowCount(5);

grid.setHeaderTemplate(combo1, 0, 1); // header combo

grid.setCellTemplate(new AW.Templates.Combo, 0); // cell combo
grid.setPopupTemplate(list2); // cell combo popup

document.write(grid);
Jez (TTS)
February 12,
Setting the grid cell's editable seems to solves it ( as described somewhere in the forum), but if you don't need rest columns to be editable you can set the selection to single-row, or set those columns uneditable one by one ( last not tested)

//grid.setSelectionMode("single-row");
grid.setCellEditable(true);
Carlos
February 12,
Hi Carlos..

Thanks for your prompt reply...

Yes changing the cell to editable seems to work.. but the combo has text that we do not want to be editable.. for example we use it for a VAT code identify and if the user accidental changes the code and then posts, it will cause problems..

I have set the entire grid to editable(true) and then changed the single cells to editable(false) and this do not fix it...

This must be a bug??
Jez (TTS)
February 17,
Check this post for not editable combos :
http://www.activewidgets.com/javascript.forum.9294.19/dropdown-control-instead-of-combo.html
Carlos
February 18,

This topic is archived.

See also:


Back to support forum