Export (0) Print
Expand All

DynamicFilter.FilterUIHint Property

Gets or sets the name of the filter template that is used to create the UI.

Namespace:  System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)

public string FilterUIHint { get; set; }
<asp:DynamicFilter FilterUIHint="String" />

Property Value

Type: System.String
The name of the filter template.

The FilterUIHint property lets you specify the filter template to create the UI for table row filtering. You can specify the filter template to use in the following ways:

  • By using the FilterUIHint property in page markup. This approach is a presentation-layer customization, which is independent of the schema (database) and which applies to a single page.

  • By using the FilterUIHintAttribute attribute in the model. This approach is a data-layer customization, which depends on the specific schema (database) and which applies to the entire application.

If you use both approaches, the filter template specified in the markup takes precedence over the template specified in the data model.

The following example shows how to specify the filter template in markup to use for filtering.

<asp:DynamicFilter ID="CategoryFilter" runat="server" 
    FilterUIHint="ForeignKey" />

.NET Framework

Supported in: 4.6, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft