QueryableFilterRepeater.ItemTemplate Property

.NET Framework (current version)
 

Gets or sets the controls that populate the QueryableFilterRepeater class.

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

<BrowsableAttribute(False)>
<PersistenceModeAttribute(PersistenceMode.InnerProperty)>
<TemplateContainerAttribute(GetType(INamingContainer))>
Public Overridable Property ItemTemplate As ITemplate

Property Value

Type: System.Web.UI.ITemplate

An object that defines how items in the QueryableFilterRepeater control are displayed.

The ItemTemplate property defines the behavior that is used to populate the QueryableFilterRepeater control with child controls. The child controls represent the inline templates that are defined on the page.

The following example shows how to set the QueryableFilterRepeater control's ItemTemplate property so that it contains DynamicFilter controls to create the UI for each supported column type.

<!-- Set the QueryableFilterRepeater control attributes. -->             
<asp:QueryableFilterRepeater runat="server" ID="FilterRepeaterID">
    <ItemTemplate>
        <asp:Label ID="Label1" runat="server" Text='<%# Eval("DisplayName") %>' />
        <asp:DynamicFilter runat="server" ID="DynamicFilter" 
            OnFilterChanged="OnFilterSelectionChanged" /><br />
    </ItemTemplate>
</asp:QueryableFilterRepeater>

.NET Framework
Available since 4.0
Return to top
Show: