Specializes DevExpress's ListData class to improve its performance and fix some bugs.
This class exists to override the default O(n^2) implementation for TreeListNode creation. This implementation is specialized and optimized for use with ExplorerTreeList and ExplorerFramework.DataFacade.
Public Member Functions |
|
ExplorerListData (TreeListDataHelper dataHelper, ExplorerTreeList treeList) | |
Constructs the ListData with the data helper
and treelist objects. |
|
Protected Member Functions |
|
override object | ConvertValue (object value, object columnID) |
Override ConvertValue to check that a
TypeConverter associated with a type can properly ConvertTo the
desired type. |
|
override void | CreateAllNodes () |
Override CreateAllNodes because the base
algorithm is O(n^2) |
|
Properties |
|
ExplorerTreeList |
ExplorerTreeList [get, set] |
The TreeList object associated with this
list. |
MaxCustomControls::ExplorerListData::ExplorerListData | ( | TreeListDataHelper | dataHelper, |
ExplorerTreeList | treeList | ||
) | [inline] |
Constructs the ListData with the data helper and treelist objects.
dataHelper | The TreeListDataHelper object associated with this list - passed to the base class constructor |
treeList | The ExplorerTreeList associated with this list - this object's DataFacade is passed to the base class constructor |
override object MaxCustomControls::ExplorerListData::ConvertValue | ( | object | value, |
object | columnID | ||
) | [inline, protected] |
Override ConvertValue to check that a TypeConverter associated with a type can properly ConvertTo the desired type.
The base DevExpress implementation will look for a TypeConverter on the destination column, but it doesn't check that the TypeConverter can actually converter to the column's type, or even if that conversion is necessary.
value | Edit value to set in the column. |
columnID | Id for the destination column. |
override void MaxCustomControls::ExplorerListData::CreateAllNodes | ( | ) | [inline, protected] |
Override CreateAllNodes because the base algorithm is O(n^2)
ExplorerTreeList
MaxCustomControls::ExplorerListData::ExplorerTreeList [get,
set] |
The TreeList object associated with this list.