New to Telerik UI for WPF? Download free 30-day trial

Edit Modes

RadDataForm exposes an EditMode property of type DataFormEditMode, which provides different options for editing behavior. Its possible values are Default and Single.


The default option utilizes lighter UI, but also provides fewer options:

  1. All DataFormDataField editors are accessible from the UI and the correctness of an edit operation is ensured only by the data-binding mechanism.

  2. There are no distinct visual states of the DataFormDataField that indicate whether it is being currently edited, or not.

  3. When a validation error occurs, users are not encouraged to fix it, or cancel their change by blocking the UI.

Example 1: RadDataForm with Default EditMode

<telerik:RadDataForm EditMode="Default"/> 
Figure 1: RadDataForm with Default EditMode

RadDataForm with Default EditMode


Single EditMode introduces the concept of editing properties one at a time. An editor is created only for the currently edited property. The other values are displayed in TextBlocks.

It relies on DataFormDataField's DataMemberBinding property. Setting this mode is not supported with dynamic data.

Example 2: RadDataForm with EditMode set to Single

<telerik:RadDataForm EditMode="Single"/> 
Figure 2: RadDataForm with Single EditMode

RadDataForm with Single EditMode

See Also

In this article