3.2.0

Setting grid editing style for a single column

I have a grid where the text is all in Courier New font and the text in a single column (#3) is bold. In AW 2.0, I used the ".aw-grid-cell" class to set the text font and the ".aw-column-2" class to set column #3 to bold. With the update to version 2.5, I found that when editing a cell, a different class was being used. After a lot of trial and error, I finally found that I had to set the ".aw-edit-cell INPUT" class to set the font used when editing a cell. But I haven't been able to find how to set the input text of a single column to bold. Does anyone know which class would be the editing equivalent of ".aw-column-2"?
Randall Severy
December 26,
Ok, i found how you can do that:

<html>
<head>
<script src="../runtime/lib/aw.js"></script>
<link href="../runtime/styles/vista/aw.css" rel="stylesheet"></link>
<style>
#abc .aw-grid-cell { font-family: tahoma; color: blue;}
#abc .aw-column-0 input {font-family: courier; color: red;}
</style>
</head>
<body>
<SCRIPT>
var obj = new AW.UI.Grid;
obj.setCellData(function(col, row){return col + "." + row});
obj.setHeaderText("header");
obj.setId("abc");

obj.setColumnCount(10);
obj.setRowCount(20);
obj.setVirtualMode(true);
obj.setCellEditable(true);
document.write(obj);
</script>
</body>
</html>
Paulo Cesar (PC from Brazil )
December 28,

This topic is archived.

See also:


Back to support forum