Skip to main content

FilterBox.AutoFocus Property

Gets or sets a value that specifies whether the filter box editor automatically gets focus after a web page has been loaded into a browser.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


public bool AutoFocus { get; set; }

Property Value

Type Default Description
Boolean false

true if input focus is automatically moved to the filter box editor after page loading; otherwise, false.


This example demonstrates how to use soft filtering (the ASPxTitleIndex.SoftFiltering property) for the ASPxTitleIndex control.

<dxti:ASPxTitleIndex ID="ASPxTitleIndex1" runat="server" 
DataSourceID="XmlDataSource1" SoftFiltering="True">
   <IndexPanel Visible="False" />
      <FilterBox AutoFocus="True" Delay="500" HorizontalPosition="Left" />
<asp:XmlDataSource ID="XmlDataSource1" runat="server" 
DataFile="~/App_Data/Countries Auto Binding.xml"></asp:XmlDataSource>
See Also