Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

QueryableFilterRepeater.ItemTemplate Property

Gets or sets the controls that populate the QueryableFilterRepeater class.

Namespace:  System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)
public virtual ITemplate ItemTemplate { get; set; }

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">
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("DisplayName") %>' />
                    <asp:DynamicFilter runat="server" ID="DynamicFilter" 
                        OnFilterChanged="OnFilterSelectionChanged"  /><br />

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.