Sep 17, 2009, 11:57 AM
Changing cls property TreeNode
Hi,
How can I change the cls property for a TreeNode in beforeClick listener?
At the beginning the cls is set to 'strikeout-text' and when I click in node I want to reset the cls.
I have tried this but it isn't works
Thanks a lot.
</PRE>
How can I change the cls property for a TreeNode in beforeClick listener?
At the beginning the cls is set to 'strikeout-text' and when I click in node I want to reset the cls.
I have tried this but it isn't works
Thanks a lot.
.strikeout-text
{
text-decoration: line-through;
}
<ext:TreePanel
ID="TreePrestationBuilder" AutoScroll="true" ContainerScroll="true" Title="<%$ Resources: CreatedRates %>"
UseArrows="true" RootVisible="false" Animate="true" BufferResize="true" runat="server"
Border="false" BodyBorder="false" EnableDrop="false" EnableDrag="false" ContextMenuID="TreeBuilderContextMenu">
<Root>
<ext:AsyncTreeNode NodeID="Root" Text="Root" Expanded="true" />
</Root>
<Listeners>
<BeforeLoad Fn="loadBuiltNodes" />
<BeforeClick Handler="node.attributes.cls = ''; node.setText('test');" />
</Listeners>
</ext:TreePanel>
</PRE>