:: Forum >>

grid.setSelectionMode("multi-row-marker") puts checkBox in 3th column

I am using
grid.setSelectionMode("multi-row-marker")
to display checkboxes in all rows.
also i do something like
grid.setColumnIndices([3,2,0,1]);

The problem is that checkboxes appear with the column which is originally 0.So if i want to reorder the display and element at 0 index in my map at column 3,the checkbox will also appear in column 3.
Any ideas how to resolve this.

All I need is -
1)To be able to specify the order in which I want grid columns to be displayed (My input to the grid is an xml string)
2)Always display the checkBoxes at the first displayed column.

Any pointers will be greatly appreciated!
Thanks!
ashii
Wednesday, February 6, 2008
You can put checkbox (CheckedItem) template into any column -

obj.setColumnIndices([3,2,0,1]);
obj.setSelectionMode("multi-row-marker");
obj.setCellTemplate(new AW.Templates.CheckedItem, 3); // checkbox
obj.setCellTemplate(new AW.Templates.Cell, 0); // normal cell
Alex (ActiveWidgets)
Thursday, February 7, 2008

This topic is archived.


Back to support forum

Forum search