CSLA class supporting TreeView

CSLA class supporting TreeView

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


Mahmud posted on Saturday, May 12, 2007

In our every entry form, we show a Tree filled with IDs, and when one ID is selected - we show the full data (normally a businessbase object with a businesslist children list). We also allow IDs to be grouped (by Client, Date...) in the form. For filling the tree, we use Readonlylistbase and readonlybase classes. We have incorporated one Parent property in the class - which we use for grouping.

Is there anything more flexible...so that grouping can be done dynamically...or it will support multiple levels of grouping (say, clients > date > orders)?

 

Brian Criswell replied on Saturday, May 12, 2007

If you do a search of the forums, you can find an example of overriding TreeNode to listen to the databinding events on CSLA objects to provide a "databound" TreeView.

Copyright (c) Marimer LLC