Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxHtmlEditor.InputDelay Property

Specifies a delay between the last user change and the Markup property value update. Applied in HtmlEditorBindMarkupMode.OnDelayedInput mode only.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(500)]
[Parameter]
public int InputDelay { get; set; }

#Property Value

Type Default Description
Int32 500

A delay in milliseconds.

#Remarks

This property is in effect if BindMarkupMode is set to OnDelayedInput. The InputDelay property specifies the delay between the last user change and the consequent Markup property value update. The default value is 500 ms.

The following code snippet updates the Markup property value in 2 seconds (2,000 ms) after the last user change:

Razor
<DxHtmlEditor @bind-Markup="@Markup"
              BindMarkupMode="HtmlEditorBindMarkupMode.OnDelayedInput"
              InputDelay="2000"
              Height="200px"
              Width="100%" />

<p>The result markup: @Markup</p>

@code {
    string Markup { get; set; } = "";
}
See Also