3.2.0

Selected color

Hi,

I have looked through the forum but not found the solution, the applikation i'm woorking on has several grids on the screen at on time.

I have tried to make a solution where i can see on the selected color if the grid is active.

obj.onControlDeactivated = function(){obj1.getRowTemplate(0).setClass("column","selectedin")};
obj.onControlActivated = function(){obj1.getRowTemplate(0).setClass("column","selected")};

But i have trouble making it work.
Flaffer
July 15,
Assign .aw-activated-true/false class to the grid itself -
obj.onControlActivated = function(){
    this.setClass("activated", true);
}

obj.onControlDeactivated = function(){
    this.setClass("activated", false);
}


and use CSS selectors -

.aw-grid-control .aw-rows-selected {
    background: #ccc;
}

.aw-activated-true .aw-rows-selected {
    background: #009;
}
Alex (ActiveWidgets)
July 16,

This topic is archived.

See also:


Back to support forum