treegrid get row style

Hello,

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:

getRowTextStyle

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

thanks

You can get original row style with getRowAttribute() method docs.dhtmlx.com/doku.php?id=dhtm … 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);