Support & Community

Edit data

Previous Table of Contents Next
Flexible TreeView allows you not only to display data, but also to edit it in–place.

To enable data editing, enable the Editable node control property (not supported by all node controls) and click that node control (also, see EditStartMode) or press a key, defined in the EditHotKey property.

Flexible TreeView notifies about edit steps using events in this sequence:

  • NodeEditing - when the node edit starts. You can cancel the edit in this event;
  • NodeEditorShown - when the node edit has been started and an editor control has been shown;
  • NodeEditValidate - when user changes the editor control`s value. You can validate that value and cancel changes;
  • NodeEdited - when the node edit has been finished.
     

When you start to edit by mouse click, Flexible TreeView will react only to clicks on the node control`s body, so if it contains no data, you can`t start to edit by mouse. You can tell the node control to fill all available free space, and then you can start to edit by click even on empty space. To do that, enable the FillFreeSpace node control property. On the other hand, using a shortcut, you can start to edit even for a node control with empty content.

 

 You can delay the edit start by using the EditorShowDelay treeview property.

 

Additional API reference


Properties

  • NodeControl.Editable – defines whether the node control can edit data it contains;
  • TreeView.EditorShowDelay – delay in milliseconds before showing the edit control;
  • NodeControl.EditStartMode – defines when to start editing;
  • NodeControl.EditHotKey – contains a shortcut for starting to edit;
  • NodeControl.ApplyChangesOnLostFocus – defines whether to save changes when the edit control loses focus;
  • NodeControl.MaxEditorWidth/MinEditorWidth – defines the minimum and maximum edit control size.
Previous Top Next
Last news
Flexible TreeView v2.7
Sunday, 01 August 2010

Flexible TreeView v2.7 has been released with completely reimplemented data binding support.

Flexible TreeView v2.6
Thursday, 13 May 2010
Flexible TreeView v2.6 has been released with Visual Studio 2010 support, new NodeDateTime node control, data access great speed increase and much more.
Flexible TreeView v2.5
Saturday, 13 March 2010

Flexible TreeView v2.5 has been released with the new NodeProgressBar node control.

Latest release

Version:
Release date:
2.7.1
Aug 11, 2010


Copyright © 2006-2010 ARMSoft. All rights reserved.