:: Forum >>
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
Sunday, July 15, 2007
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)
Monday, July 16, 2007
This topic is archived.
Back to support forum
Forum search