The requested page is not available for the requested platform. You are viewing the content for Default platform.

PropertyEditor.ImmediatePostData Property

Specifies whether the property editor's control value should be passed to the property of a bound object as soon as possible when the value is changed by user. For instance, it allows you to enforce updating other displayed values that are calculated based on the current property.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

public bool ImmediatePostData { get; set; }
Public Property ImmediatePostData As Boolean

Property Value

Type Description
Boolean

true if the property editor's control value should be passed as soon as possible; otherwise, false.

Remarks

This property derives its default value from Views | <DetailView> | Items | <PropertyEditor> | ImmediatePostData and Views | <ListView> | Columns | <Column> | ImmediatePostData.

Refer to the ImmediatePostDataAttribute topic for details.

The example below demonstrates how to apply ImmediatePostData to FirstName and LastName. This causes the calculated FullName field to update automatically in WinForms applications.

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Win.Editors;
// ...
public class FullNameController : ObjectViewController<DetailView, MainDemo.Module.BusinessObjects.Contact> {
    protected override void OnActivated() {
        StringPropertyEditor firstNameEditor = (StringPropertyEditor)View.FindItem("FirstName");
        StringPropertyEditor lastNameEditor = (StringPropertyEditor)View.FindItem("LastName");
        firstNameEditor.ImmediatePostData = true;
        lastNameEditor.ImmediatePostData = true;
    }
}
See Also