ok, there we go:
<html>
<head>
<title>:: Sonner Components :: Example Extended GRID (v4) ::</title>
<script src="specialArray.js"></script>
<script src="../templates/templates.js"></script>
<script src="../runtime/lib/aw.js"></script>
<script src="gridController.js"></script>
<script src="languages/extendedBars_enUS.js"></script>
<script src="extendedBars.js"></script>
<script src="languages/extendedFilter_enUS.js"></script>
<script src="extendedFilters.js"></script>
<script src="cssexpr.js"></script>
<script src="xmenu.js"></script>
<script src="bars/Filterbar.js"></script>
<script src="bars/Toolbar.js"></script>
<script src="languages/components/columnsVisible_ptBR.js"></script>
<script src="components/ColumnsVisibleCombo.js"></script>
<link rel="stylesheet" href="../runtime/styles/xp/aw.css">
<link rel="stylesheet" href="xmenu.css">
<link rel="stylesheet" href="xmenu.windows.css">
<style>
#gridExtendedSonner { width: 500px; height:340px; margin: 0px; padding: 0px}
#gridExtendedSonner .aw-footer-0 .aw-item-box {background-color:#CCCCCC; text-align:center}
#gridExtendedSonner .aw-alternate-even {background: #E7E7D6;}
#gridExtendedSonner .aw-alternate-odd {background: #F7F3E7;}
#gridExtendedSonner .aw-rows-selected {background: #316ac5;}
#gridExtendedSonner .aw-mouseover-row {background: lightblue;}
.aw-toolbar-normal {
background-color:#CCCCCC;
size:inherit;
width:100%;
height:22px;
vertical-align:baseline;
text-align:left;
}
.aw-filterbar-normal {
background-color:#CCCCCC;
overflow:auto;
size:inherit;
width:100%;
height:150px;
}
</style>
</head>
<body>
<script>
var records = [
["99687542", "Microsoft Coorporation", "Jan", 0.10],
["99687542", "Microsoft Coorporation", "Feb", 0.05],
["99687542", "Microsoft Coorporation", "Mar", 1.0],
["10056957", "Monsters S.A INC", "Jan", 950],
["10056957", "Monsters S.A INC", "Feb", 960],
["10056957", "Monsters S.A INC", "Mar", 1400],
["45878954", "The Ice Age 2 (Brazil rulez)", "Jan", 1000],
["45878954", "The Ice Age 2 (Brazil rulez)", "Feb", 8000],
["54789658", "ActiveWidgets Company rulez", "Jan", 990],
["77845694", "ATI Company", "Jan", 890],
["01201201", "MSI Company", "Jan", 880]
];
var columnTitles = new array();
columnTitles.add("Company Code", "Company Name", "Month", "$ Capital");
var extendedGrid = new AW.Grid.Extended;
var exGridController = new GridController(extendedGrid, columnTitles);
extendedGrid.setCellFormat([new AW.Formats.Number, new AW.Formats.String, new AW.Formats.String, new AW.Formats.Number]);
extendedGrid.setId("gridExtendedSonner");
extendedGrid.setCellText(records);
extendedGrid.setRowCount(records.length);
extendedGrid.setHeaderCount(1);
extendedGrid.setSelectionMode("single-row");
extendedGrid.setFooterCount(0);
extendedGrid.setVirtualMode(true);
extendedGrid.setColumnWidth(100, 0);
extendedGrid.setColumnWidth(200, 1);
extendedGrid.setColumnWidth(60, 2);
extendedGrid.setColumnWidth(100, 3);
new BarController(extendedGrid);
var filterbar = new Filterbar(extendedGrid, "filterbar", "normal", 150, true);
exGridController.getController(BAR_CONTROL).addBar(filterbar);
new ExtendedFilter(extendedGrid, filterbar);
exGridController.getController(FILTER_CONTROL).initDefaultFitersAndConditions();
exGridController.getController(FILTER_CONTROL).init();
var toolbar = new Toolbar(extendedGrid, "toolbar", "normal", 22, true);
toolbar.addComponent(new ColumnsVisibleCombo(extendedGrid));
exGridController.getController(BAR_CONTROL).addBar(toolbar);
exGridController.getController(BAR_CONTROL).init();
document.write(extendedGrid);
</script>
</body>
</html>
Paulo Cesar Silva Reis (PC from Brazil).