Is there a removeClass function?
Just out of curiosity. I know we have setClass() and getClass() functions.
Sam H
May 15,
Calling obj.setClass(name, value) adds CSS class 'aw-name-value'.
Calling the same method with empty string as value obj.setClass(name, '') removes it.
Alex (ActiveWidgets)
May 16,
Hi Alex,
That helps to a certain extent. But what if I have a set two classes with the same name, but different values?
obj.setClass(name,value1)
obj.setClass(name,value2)
In this instance using obj.setClass(name,'') will remove both classes, instead of just a specific one.
Also, a problem I'm running into is that when I set the class of just the selected row to change, and then scroll down the grid when the grid repaints it changes the class of all the rows, instead of just the selected row.
The CSS classes that I currently have are as shown below. I'm going to try and rework them a bit to see if I can resolve it.
.aw-mode-grid {font-weight: bold;}
.aw-mode-queue {font-weight: normal;}
.aw-mode-queue.aw-qselected-true {font-weight: bold;}
.aw-mode-queue.aw-qselected-false {font-weight: normal;}
.aw-mode-grid.aw-gselected-true {font-weight: normal; font-style: italic;}
Sam H
May 16,
Ahhhh ... never mind. I missed out setti the index value in the getRowTemplate() function. Resolved. Thanks :-)
Sam H
May 16,