Ivan,
I tried your suggestion. But it didn't work. Here is my code
function PopulateChildren(tree, parentNode, nodes)
{
$.each(nodes, function(i, item)
{
tree.create
(
{
attributes:
{
id:
item.attributes.id,
'class': item.attributes.cssClass, // for 'Taxonomy' and
'Category'
populated: item.attributes.populated,
key: item.attributes.key,
parentId: item.attributes.parentId,
taxId: item.attributes.taxId,
rel: item.attributes.rel,
mdata: item.attributes.mdata
},
data: item.data.title
},
$("#" + parentNode.id)
);
});
}
And my css is is below:
/* My custom color */
.tree li.Category { color:rgb(0,0,255)} // I tried with '#Hex'
notation too.
The class gets added properly and I can see it. Here is the
constructed html.
<li class="Category leaf" id="Cat30" jQuery1247322061802="52"
mdata="{creatable : true,draggable : true,clickable : true,deletable :
false,renameable : true,drag_copy : true}" populated="false" key="30"
rel="TaxCats" taxId="2" parentId="29" nodeIndex="2" sizcache="224"
sizset="0">
But the color does not get applied. Can you help please?
Babu.
> > Babu.- Hide quoted text -
>
> - Show quoted text -