:: Forum >>
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
var combo1 = new AW.UI.Combo;
combo1.setItemText(["a", "b", "c", "d"]);
combo1.setItemCount(4);
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);
grid.setCellTemplate(new AW.Templates.Combo, 0);
grid.setPopupTemplate(list2);
document.write(grid);
Jez (TTS)
Tuesday, February 12, 2013
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
Tuesday, February 12, 2013
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)
Sunday, February 17, 2013
Carlos
Monday, February 18, 2013
This topic is archived.
Back to support forum
Forum search