3.2.0

cant display checkbox in data grid

Hi,

Perhaps an extremely naive task....but i'm a beginner here and there's no Api as such.
I just need to insert checkbox as first column in my table and am unable to do so.
Here's my simple test code:
var myHeaders = ["Ticker", "Company Name", "Market Cap."];

// create grid object
var obj = new AW.UI.Grid;

obj.setCellTemplate(new AW.Templates.Checkbox,1);
// assign cells and headers text
obj.setCellText("rash",1,1);
obj.setHeaderText(myHeaders);

// set number of columns/rows
obj.setColumnCount(3);
obj.setRowCount(2);

// write grid to the page
document.write(obj);


any pointers will be greatly appreciated
Thanks!
rash
January 24,
This code works ok for me. Did you copy the images with aw.css file?
Alex (ActiveWidgets)
January 28,
No.I do not have any images.
Where do they need to be kept in classpath?Do you need to map the location of the image in the jsp somehow?
rash
January 29,
You should copy all files in the style directory and not only one aw.css file.
Alex (ActiveWidgets)
January 30,

This topic is archived.

See also:


Back to support forum