Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
<NodeTemplate>
@{
<div style="float:left">
<img class="eimage" src="@((@context as TreeProxyDataModel).visibilityIndicatorPath)" />
<div class="ename">@((@context as TreeProxyDataModel).Caption)</div>
</div>
}
</NodeTemplate> |
treeData.Add(new TreeProxyDataModel
{
id = 1,
Caption = "Steven Buchanan",
HasChild = true,
Expanded = true,
vehivleIcon = "10",
Hint = "CEO",
visibilityIndicatorPath = "/images/Employees/10.png"
}); |
public void btnClick()
{
foreach( var r in DataSource )
{
r.visibilityIndicatorPath = "/images/anne.png";
}
treeData = DataSource;
tree.Refresh();
} |