ツリービューのノードの色をプログラムで変更する必要があります。asp.netまたはjqueryで解決策はありますか? PS: オンデマンドでツリービュー ノードをバインドしています。
private void BindTreeViewControl()
{
try
{
DataTable dt = new DataTable();
dt = GetData();
for (int i = 0; i < dt.Rows.Count; i++)
{
TreeNode root = new TreeNode(dt.Rows[i]["Name"].ToString(), dt.Rows[i]["Name"].ToString());
root.SelectAction = TreeNodeSelectAction.SelectExpand;
root.ShowCheckBox = true;
child.PopulateOnDemand = Convert.ToUInt32(dt.Rows[i]["Count"]) > 0; TreeViewDemo.Nodes.Add(root);
}
}
catch (Exception Ex)
{
throw Ex;
}
}