Flexible TreeView Flexible TreeView


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.

 

EditStartMode

Modifying the EditStartMode property you can determine when to start data editing of each editable control. 
Available modes:

  • Disabled - do not start editing automatically;
  • Click - start editing after clicking on a node whatever state it is in (non-selected, selected, focused, hot or soft-selected);
  • ClickOnSelected - start editing only after clicking on a selected or a focused node.

 

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
Bookmark and Share
Use Flexible TreeView in WPF project
Sunday, 18 December 2011

Do you have a WPF project and want to use Flexible TreeView there? No problem!

Flexible TreeView v3.4
Friday, 16 December 2011

Flexible TreeView v3.4 maintenance release has been released.

Flexible TreeView v3.3
Friday, 23 September 2011

Flexible TreeView v3.3 maintenance release has been released. Separate assemblies for .NET 2.0, 4.0 and 4.0 Client Profile, HTML markup extension, etc.

Latest release

Version:
Release date:
3.4
Dec 16, 2011


Copyright © 2006-2012 ARMSoft. All rights reserved.