How do I hide a multi row marker?
I have a grid that needs to show up in two modes. On one, I set it as single select, on the other the multi-row-marker. The problem is that when I try to go back to single select mode, the checkboxes don't disappear.
var MODE1 = 1;
var MODE2 = 2;
var mode = MODE1;
function setGridMode() {
if (mode==MODE1) {
obj.setSelectionMode("single-row");
obj.getRowTemplate().setStyle("font-weight","bold");
} else {
obj.setSelectionMode("multi-row-marker");
obj.getRowTemplate().setStyle("font-weight","normal");
}
}
var MODE1 = 1;
var MODE2 = 2;
var mode = MODE1;
function setGridMode() {
if (mode==MODE1) {
obj.setSelectionMode("single-row");
obj.getRowTemplate().setStyle("font-weight","bold");
} else {
obj.setSelectionMode("multi-row-marker");
obj.getRowTemplate().setStyle("font-weight","normal");
}
}
Sam H
May 1,