DynamicFilter.FilterUIHint Property

.NET Framework (current version)
 

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; }

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
Available since 4.0
Return to top
Show: