Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Customize data for every node  (Read 335 times)

0 Members and 1 Guest are viewing this topic.

dijug

  • Guest
Customize data for every node
« on: June 17, 2010, 05:45:59 AM »
hi,

what is the best way to bind the treeview to data that`s stored outside of nodes? I have a list and I want to bind the treeview to this list as easy as possible (with edit support).

thanks.

Ruslan

  • Flexible TreeView Team
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 496
Re: Customize data for every node
« Reply #1 on: June 17, 2010, 10:55:31 AM »
Hi,

You have two ways here.
1. You can bind node controls to a node`s member which will get/set values from/into your external data source item.
2. You can manage this from one point by enabling the node control`s virtual mode (enable the VirtualMode node control property) and handle NodeControlValueGet/NodeControlValueSet treeview events to get/set values respectively.

Also, we almost finished the complete data binding support (both bound and unbound modes) implementation so you`ll need only attach your data source object while treeview will take care about all other things, including data edit. We`ll support ITypedList, IBindingList, IBindingListView, IList, IEnumerable plus INotifyPropertyChanged to track the data source changes. This will be available in the next version.
 

Copyright © 2006-2012 ARMSoft. All rights reserved.