Hi,
I am using the following method to modify row background colors.
Basically I want all parents to have one color while their children to have another color.
Here's what I am doing:
However, on expanding the treelist, it goes back to the original color (i.e. alternating white and greys)..What do I need to fix (or some other way) to accomplish what I am trying?
function onDataBound(e){ console.log("data bound event called"); var rows = e.sender.tbody.children(); for (var j=0; j<rows.length;j++){ var row = $(rows[j]); var dataItem = e.sender.dataItem(row); var stratName = dataItem.get("strategyName"); if (stratName.indexOf("parent") != -1 ) { row.css({"background-color": "#fda"}); } else{ row.css({"background-color": "#ced"}); } }}// end of onDataBound
Thanks a lot,
Labhesh
