Hello Telerik!
Some nodes can be checked on the server and there are checked also in the generated control (leaf nodes). Some nodes can be checked on the server programatically, also data for the control contains JSON array: checked:1, but generated treeview does not contain checked nodes. In fact only leaf nodes can be checked on server side when tri-state checkboxes are enabled.
Thank you Tom
Some nodes can be checked on the server and there are checked also in the generated control (leaf nodes). Some nodes can be checked on the server programatically, also data for the control contains JSON array: checked:1, but generated treeview does not contain checked nodes. In fact only leaf nodes can be checked on server side when tri-state checkboxes are enabled.
void treeView_NodeDataBound(object sender, RadTreeNodeEventArgs e) |
{ |
int i; |
if (this.keys != null) |
{ |
for (i = 0; i < this.keys.Length; i++) |
{ |
if (keys[i] == e.Node.Value) |
break; |
} |
if (i < this.keys.Length) |
{ |
if (this.treeView.CheckBoxes) |
e.Node.Checked = true; |
else |
e.Node.Selected = true; |
} |
} |
} |
<RadTreeView DataTextField="n_code_name" DataFieldID="n_id" DataFieldParentID="att_50170_key" DataValueField="n_id" Skin="Office2007" CheckBoxes="True" TriStateCheckBoxes="true" CheckChildNodes="false" /> |
Thank you Tom