3.2.0

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");
}
}
Sam H
May 1,
Looks like you need to refresh the grid to see the changes.
Alex (ActiveWidgets)
May 7,
Hi Alex,

Grid refresh didn't work. I tried. I went with the selector column instead, setting it visible or invisible based on the mode, with grid refresh. That did the trick.

I'm finally getting the hang of this a little bit. But trying to fit our existing custom functions with the new AW api's while learning javascript on the fly has been interesting, to say the least.

Thanks :-)
Sam H
May 7,

This topic is archived.

See also:


Back to support forum