<!-- this comment puts all versions of Internet Explorer into "reliable mode." -->
<% Response.Buffer = True %>
<!--#include virtual="/Lib/common.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Grid Testing Window</title>
<link href="/style.css" rel="stylesheet" type="text/css" />
<script src="/Lib/_AW/aw.js"></script>
<link href="/Lib/_AW/aw.css" rel="stylesheet"></link>
</head>
<style>
#defaultgrid {font-size:8pt; border-top: 1px solid black;}
#defaultgrid .aw-edit-cell { border:1px solid #999999;}
#defaultgrid .aw-grid-row {border-bottom: 1px solid threedlightshadow; text-align: left;}
#defaultgrid .aw-alternate-even {background: #fff;}
#defaultgrid .aw-alternate-odd {background: #ddd;}
#defaultgrid .aw-grid-cell {border-right:1px solid threedlightshadow; padding-right:3px;}
#defaultgrid .aw-column-0 {font-weight: bold; background: #ebeadb;}
#defaultgrid .aw-rows-selected {color:black; font-weight:bold; background:#ebeadb;}
#defaultgrid .aw-cells-selected {color:black; font-weight:bold; background:#ebeadb;}
#defaultgrid .aw-grid-header {text-align:center; color:black; font-weight:bold; background:#ebeadb; }
#defaultgrid .aw-header-0 .aw-mouseover-header {color:#890000;}
#defaultgrid .aw-sort-descending .aw-grid-sort { background:none}
#defaultgrid .aw-sort-ascending .aw-grid-sort { background:none}
</style>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="385" border="0" cellpadding="0" cellspacing="0" class="std_black">
<tr><td><script>
var obj = new AW.Grid.Extended
obj.setSize(385,200);
obj.setId("defaultgrid");
obj.setVirtualMode(false);
obj.setHeaderCount(1);
obj.setSelectorVisible(false);
obj.setSelectionMode("single-cell");
//obj.setRowHeight(20);
obj.setHeaderText(['col1','col2','col3','col4','col5']);
obj.setColumnCount(5);
obj.setColumnWidth([40,80,80,80,80]);
document.write(obj);
// Data
var table = new AW.CSV.Table;
table.setURL('blah blah')
table.response = function(text) {
this._rows = text.split(/\r*\n/);
if (!this._rows[this._rows.length-1]){ this._rows.pop(); }
this._data = []; var nn = this.getCount() -12 // Note: deliberate !!
if (this.$owner) {
this.$owner.clearScrollModel();
this.$owner.clearSelectedModel();
this.$owner.clearSortModel();
this.$owner.clearRowModel();
this.$owner.setRowCount(nn);
this.$owner.refresh(); }
obj.refresh();
};
table.request();
obj.setCellModel(table);
</script></td></tr>
</table>
</body>
</html>
#defaultgrid .aw-grid-row {
border-bottom: 1px solid threedlightshadow;
text-align: left;
}
#defaultgrid .aw-grid-row {
border-bottom: 1px solid threedlightshadow;
padding-bottom: 3px;
text-align: left;
}
This topic is archived.