:: Forum >>

combo issue in firefox

I tried the bug fix patch for combo hide in firefox when clicking outside of the combo. It does not work for me. Any suggestions?
Here is my code:

var combox = new AW.Templates.Combo;
combox.setStyle("background-color","#fff");
combox.mapTemplate("popup","headerPopup");
var list0array = new Array();
list0array[0] = "All"
list0array[1] = "4946"
list0array[2] = "5029"
list0array[3] = "5113"
list0array[4] = "5144"
list0array[5] = "5225"
list0array[6] = "5274"
list0array[7] = "5575"
list0array[8] = "5872"
list0array[9] = "5885"
list0array[10] = "5888"
list0array[11] = "#,###"
list0array[12] = "#,###.##"
list0array[13] = "$#,###.##"
list0array[14] = "Custom..."
var headerlist0 = new AW.UI.List;
headerlist0.setStyle("width",200);
headerlist0.setItemText(list0array);
headerlist0.setItemCount(15);
obj.setHeaderTemplate(combox,0,1);
JK
Saturday, September 1, 2007
You should use AW.UI.Combo class inside the grid header - there is an example code in /examples/grid elements - header/combo.htm.
Alex (ActiveWidgets)
Monday, September 3, 2007
Alex, I am using the Templates.Combo based on the thread:

http://www.activewidgets.com/javascript.forum.18358.3/question-on-setpopuptemplate.html

So there is a conflict...
JK
Tuesday, September 4, 2007
bump
JK
Friday, September 7, 2007
If you need combo boxes both in grid cells and in the grid header you should use combo controls in the header (separate instance for each header cell) and combo template for grid cells (one template for a range of cells).

// 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);
Alex (ActiveWidgets)
Friday, September 7, 2007
thanks - i'll try this
JK
Friday, September 7, 2007

This topic is archived.


Back to support forum

Forum search