Skip to main content
Tab

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.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(false)]
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.

Example

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" />
      <Columns>
         <dxti:Column>
         </dxti:Column>
         <dxti:Column>
         </dxti:Column>
         <dxti:Column>
         </dxti:Column>
      </Columns>
</dxti:ASPxTitleIndex>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" 
DataFile="~/App_Data/Countries Auto Binding.xml"></asp:XmlDataSource>
See Also