Completed
Last Updated: 08 Mar 2016 06:52 by ADMIN
ADMIN
Dimitar
Created on: 10 Feb 2016 11:55
Category: TreeView
Type: Bug Report
2
FIX. RadTreeView - the adding functionality does not work when the control is bound to object relational data.
To reproduce:
- Bind to object-relational data
- Add node via the context menu.
- The DataBoundItem in the NodeAdding and NodeAdded events is null.

Workaround:
- Add the node in the code behind:
private void RadTreeView1_NodeAdding(object sender, RadTreeViewCancelEventArgs e)
{
    e.Cancel = true;
    RadTreeNode node = radTreeView1.SelectedNode;
    if (node.Level == 0)
    {
        data.Add(new MyParentClass() { Text = "test" });
    }

}
0 comments