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!
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,