TreeListBoxItemAdapter example

Grids for WPF Forum

Posted 8 months ago by John Bell
Version: 24.1.2
Avatar

Hello,

Is there an example of an implementation of TreeListItemAdapter that does not use binding and does not require a Children Property in the item object? The documentation appears to suggest that this is possible since it claims that one purpose of the ItemAdapter is that you are not forced to implement Actipro interfaces in your existing data model.

Thanks,

John

Comments (1)

Posted 8 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi John,

The DefaultTreeListBoxItemAdapter class in our samples does not use bindings at all and does not require any kind of interface usage.  It shows how a custom viewmodel for tree items that is completely defined externally can be read and consumed.  It might be the example you're looking for.

The item adapter is the middleman that provides data back to the TreeListBox (or inherited) control via bindings OR method overrides (as in this sample) that know how to examine the custom viewmodel.


Actipro Software Support

The latest build of this product (v24.1.4) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.