Back to Devexpress

TextBoxProperties.Native Property

aspnet-devexpress-dot-web-dot-textboxproperties.md

latest2.2 KB
Original Source

TextBoxProperties.Native Property

Gets or sets a value specifying whether a text box editor is rendered as a native HTML text box input.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
public bool Native { get; set; }
vb
<DefaultValue(False)>
Public Property Native As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if a text box editor is rendered as a standard HTML text box; otherwise, false.

|

Remarks

By default, the Native property is set to false, and a text box editor is rendered so that it fully supports customization of its appearance (by applying DevExpress Themes or/and changing different properties).

If the Native property is set to true, a text box editor is rendered using a standard HTML INPUT element of the TEXT type. In this case, text box appearance depends upon how a client browser interprets and displays the corresponding HTML element.

Note that native rendering results in less HTML code, improving the application’s overall performance.

Note

The Native property synchronizes its value with the editor’s ASPxTextBox.Native property.

See Also

Native Mode

Text Box

Online Demo: Common Features - Native Mode

TextBoxProperties Class

TextBoxProperties Members

DevExpress.Web Namespace