Jul 31, 2013, 5:40 AM
How to change the icon when 'itemclick' TreePanel?
Code:
How do I do?
X.TreePanel().Width(300)
.Listeners(l=>{
l.ItemClick.Handler="???";
})
.Root(
X.Node().Text("Root").NodeID("node_0").Icon(Icon.Page)
.Children(
X.Node().Text("childNode_1").NodeID("node_1").Leaf(true).Icon(Icon.ControlBlankBlue),
X.Node().Text("childNode_2").NodeID("node_2").Leaf(true).Icon(Icon.ControlBlankBlue),
X.Node().Text("childNode_3").NodeID("node_3").Leaf(true).Icon(Icon.ControlBlankBlue)
)
)
click "node_1" change "Icon.ControlBlankBlue" to "Icon.ControlStopBlue"How do I do?