:: Forum >> Version 2 >>

CheckBox column not getting displayed

More information on this topic is available in the documentation section: /grid.doc.templates/.

table.response(modelValues[0].xml);
var grid = new AW.UI.Grid;
grid.setColumnCount(5);
grid.setCellModel(table);
grid.setColumnCount(5);
grid.setCellTemplate(new AW.Templates.Checkbox, 1);
grid.setCellValue(true, 1);
grid.setColumnIndices([0, 2, 4, 5]);
grid.setRowCount(table.getCount());
grid.refresh()

If use the code above to display my grid.
The four columns from table are displayed correctly,but the checkbox column(1st column) does not display anything.
Any help will be appreciated.
krash
Tuesday, January 29, 2008
The checkbox column with index=1 is not displayed because you don't have it in the list of visible columns -

grid.setColumnIndices([0, 2, 4, 5]);

Alex (ActiveWidgets)
Wednesday, January 30, 2008



This topic is archived.

Back to /grid.doc.templates/

Documentation:

Forum search