:: Forum >>

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
Thursday, January 24, 2008
This code works ok for me. Did you copy the images with aw.css file?
Alex (ActiveWidgets)
Monday, January 28, 2008
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
Tuesday, January 29, 2008
You should copy all files in the style directory and not only one aw.css file.
Alex (ActiveWidgets)
Wednesday, January 30, 2008

This topic is archived.


Back to support forum

Forum search