|
Third party controls integration
Sunday, 23 August 2009
To edit data, the treeview uses your operation system`s controls, which may differ from those used in your application.
To fix this problem, Flexible TreeView allows you to change any control that is used in the treeview either to edit or display data (for example, scroll bars).
Flexible TreeView uses many controls to edit data (edit controls) inside a node control. You can completely or partially override those controls, both in global or personal themes, by using the EditorRepository property.
As stated above, you can use third party controls by using deployed extensions from the Customization folder. To do that, include a source code file with this extension and use the code below. Example: // replace the numeric editor for one treeview by a control from DevExpress. tree.EditorRepository.NumericEditor = new DevExpressNumeric(); // replace the text editor for one treeview by a control from DevComponents. tree.EditorRepository.TextBoxEditor = new DevComponentsTextBox(); // replace the text editor for all treeviews with global theme by own control. ThemeManager.ActiveManager.EditorRepository.TextBoxEditor = new MyTextBoxEditor(); // replace the text editor for all treeviews with the same theme manager. ThemeManagerOffice2007Blue tm = new ThemeManagerOffice2007Blue(); tm.EditorRepository.TextBoxEditor = new MyTextBoxEditorControl(); tree.ThemeManager = tm; secondTree.ThemeManager = tm;
|
|