:: Forum >>

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
Tuesday, May 1, 2012
Looks like you need to refresh the grid to see the changes.
Alex (ActiveWidgets)
Monday, May 7, 2012
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
Monday, May 7, 2012

This topic is archived.


Back to support forum

Forum search