Csla 2.0 with Tree View controls.

Csla 2.0 with Tree View controls.

Old forum URL: forums.lhotka.net/forums/t/667.aspx


Kaine posted on Wednesday, July 19, 2006

We are currently trying to bind our read-only lists (derived from your ReadOnlyBindingList from CSLA 2.0) to the tree view control provided by Infragistics, but we are hitting quite a few problems.  The problems themselves are not down to the CSLAt, but the reliability (or more accurately lack of) with the Infragistics tree view which is very buggy.  The reason for this post is that I was wondering if anyone has any recommendations or preferences on third party tree view controls that are reliable and will work well with the CSLA?

Brian Criswell replied on Wednesday, July 19, 2006

What I have done that works very well is to inherit TreeNode for the various objects that you want to display.  When you add the root TreeNode, it knows what kind of children that business object has and adds the corresponding child TreeNodes.  The TreeNodes also listen to the PropertyChanged and ListChanged events and respond accordingly.  There is a little bit of startup cost in creating the TreeNodes, but they behave as if they were databound.

Kaine replied on Monday, July 24, 2006

Thanks, I'll give it a try.

geordiepaul replied on Thursday, July 27, 2006

Have you tried creating your own SiteMapProvider using CSLA objects? Then you can use the built in TreeView which works pretty well. But I can also recommend the TreeView from telerik www.telerik.com

I had a problem with the built in treeview where I couldn't hide tree nodes but the telerik verion fixed it for me. it also has some nice features that the built in one doesn't. It also binds to SiteMapDataSource.

Kaine:

We are currently trying to bind our read-only lists (derived from your ReadOnlyBindingList from CSLA 2.0) to the tree view control provided by Infragistics, but we are hitting quite a few problems.  The problems themselves are not down to the CSLAt, but the reliability (or more accurately lack of) with the Infragistics tree view which is very buggy.  The reason for this post is that I was wondering if anyone has any recommendations or preferences on third party tree view controls that are reliable and will work well with the CSLA?

Copyright (c) Marimer LLC