Completed
Last Updated: 11 Feb 2014 13:48 by ADMIN
ADMIN
Julian Benkov
Created on: 07 Mar 2012 06:43
Category: TreeView
Type: Feature Request
3
FIX. ItemDataBound event for RadTreeNode
So is there an event triggered for added nodes when using a datasource?  I want to set the checked state based on a property on the databound item.  Basically this:

I have a treeview set like this in Q1 2012:
            treeViewProjets.DataSource = ViewModel.Projets;
            treeViewProjets.DisplayMember = @"Nom\Nom";
            treeViewProjets.ValueMember = @"Id\Id";
            treeViewProjets.ChildMember = @"Projets\ObjetsProjet";
            treeViewProjets.NodeAdded += new RadTreeView.RadTreeViewEventHandler(treeViewProjets_NodeAdded);
            treeViewProjets.NodeAdding += new RadTreeView.RadTreeViewCancelEventHandler(treeViewProjets_NodeAdding);
            treeViewProjets.NodeFormatting += new TreeNodeFormattingEventHandler(treeViewProjets_NodeFormatting);

I get a root node and many child nodes created, but the events NodeAdded and NodeAdding are never triggered, NodeFormatting triggers fine.
0 comments