The NodeItemsConverter type exposes the following members.

Constructors

  NameDescription
Public methodNodeItemsConverter

Methods

  NameDescription
Public methodConvert
Converts custom node items to a collection of DataTreeGridItem objects (as required by Items properties of DataTreeGrid component).
Public methodConvertBack
Throws a not supported exception as two way conversion is internally implemented and may be configured using the UpdateSourceOnTargetChanges and UpdateTargetOnSourceChanges properties of the converter.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Properties

  NameDescription
Public propertyContentMember
Gets or sets the property name of custom node items that Content property of DataTreeGridItem objects should be bound to. Source object values retreived by the custom property may be of any type (including string). This property can be set only at initialization time (an exception is thrown if it is set after having the conversion process started).
Public propertyIndentationMember
Gets or sets the property name of custom node items that Indentation property of DataTreeGridItem objects should be bound to. Source object values retreived by the custom property need to be of integral type. This property can be set only at initialization time (an exception is thrown if it is set after having the conversion process started).
Public propertyIsExpandedMember
Gets or sets the property name of custom node items that IsExpanded property of DataTreeGridItem objects should be bound to. Source object values retreived by the custom property need to be of Boolean type. This property can be set only at initialization time (an exception is thrown if it is set after having the conversion process started).
Public propertyUpdateSourceOnTargetChanges
Gets or sets a value that indicates whether data source is automatically updated when target DataTreeGridItem objects generated by the converter get their internally bound values changed. Set this property to false when the feature is not needed, e.g. when the user interface is read only (by default it is set to true in order to automatically propagate changes back to the data source as expected in most situations). This property can be set only at initialization time (an exception is thrown if it is set after having the conversion process started).
Public propertyUpdateTargetOnSourceChanges
Gets or sets a value that indicates whether target DataTreeGridItem objects generated by the converter are automatically updated when internally bound data source values change. Set this property to true only when the feature is needed, i.e. when code behind changes the data source while the user interface presents it and all changes should be automatically reflected on screen (by default it is set to false in order to provide increased performance). Note that automatic updates work only when the custom data source implements INotifyCollectionChanged interface and/or custom data objects implement INotifyPropertyChanged interface. This property can be set only at initialization time (an exception is thrown if it is set after having the conversion process started).

See Also