Replacement for Multiple Selection in header supports for both IE and Firefox
Normally for multiple selection check box in the grid header will work in Firefox. But it is not supported in IE.
so i think instead of having the check box in the grid header , i use the setSelectorVisible and extra having first column in the grid.
whenever we click the first column in the grid header then all the check box in the grid will selected.
It is working fine in the IE and also in firefox.
But it is not good solution any way now it is ok.
script>
var obj = new AW.UI.Grid;
obj.setCellData(function(col, row){return col + "." + row});
obj.setHeaderText("header");
obj.setColumnCount(10);
obj.setRowCount(10);
obj.setSelectionMode("multi-row");
obj.setSelectorVisible(true);
obj.setSelectorWidth(30);
obj.setSelectorTemplate(new AW.Templates.CheckedItem);
obj.onHeaderClicked=function(event,index)
{
if ( index == 0 ) {
for (var t=0; t<obj.getRowCount(); t++)
{try{obj.getSelectorTemplate(t).setStateProperty("selected", true);}catch(e){}}
}
}
document.write(obj);
</script>
so i think instead of having the check box in the grid header , i use the setSelectorVisible and extra having first column in the grid.
whenever we click the first column in the grid header then all the check box in the grid will selected.
It is working fine in the IE and also in firefox.
But it is not good solution any way now it is ok.
script>
var obj = new AW.UI.Grid;
obj.setCellData(function(col, row){return col + "." + row});
obj.setHeaderText("header");
obj.setColumnCount(10);
obj.setRowCount(10);
obj.setSelectionMode("multi-row");
obj.setSelectorVisible(true);
obj.setSelectorWidth(30);
obj.setSelectorTemplate(new AW.Templates.CheckedItem);
obj.onHeaderClicked=function(event,index)
{
if ( index == 0 ) {
for (var t=0; t<obj.getRowCount(); t++)
{try{obj.getSelectorTemplate(t).setStateProperty("selected", true);}catch(e){}}
}
}
document.write(obj);
</script>
January 8,