treegrid get row style


I have the following problem.

I set the row style from xml eg:

<row style="font-weight: bold; background-color:#888888;">

later in grid when I use the

grid.setRowTextStyle(id,"font-weight: normal;");

the row lose the css style: background-color:#888888;

would be nice having a method for getting original row style:


or anyone has a quick solution how to achieve this function?


You can get original row style with getRowAttribute() method … wattribute

ok i found the solution at the moment :slight_smile:

grid.attachEvent("onRowSelect", function(id,ind){ rowstyle = ten_dob.getRowAttribute(id,"style"); grid.setRowTextStyle(id,"font-weight: normal;"+rowstyle);