<%@ Page Title="" Language="C#" MasterPageFile="~/Wijmo.Master" AutoEventWireup="true" CodeBehind="FilteringTemplateField.aspx.cs" Inherits="ControlExplorer.C1GridView.FilteringTemplateField" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.4" Namespace="C1.Web.Wijmo.Controls.C1GridView" TagPrefix="wijmo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<wijmo:C1GridView ID="C1GridView1" runat="server" DataSourceID="dbEmployees"
		AutogenerateColumns="False" ShowFilter="true" DataKeyNames="EmployeeID"
		CallbackSettings-Action="Filtering">
		<Columns>
			<wijmo:C1BoundField HeaderText="EmployeeID" DataField="EmployeeID"
				SortExpression="EmployeeID" Width="120" />
			<wijmo:C1TemplateField HeaderText="Title" DataField="Title">
				<ItemTemplate>
					<asp:Label runat="server" Font-Italic="true" ID="lbl2" Text='<%# Bind("Title") %>'></asp:Label>
				</ItemTemplate>
			</wijmo:C1TemplateField>
			<wijmo:C1BoundField HeaderText="BirthDate" DataField="BirthDate"
				SortExpression="BirthDate" />
			<wijmo:C1BoundField HeaderText="HireDate" DataField="HireDate"
				SortExpression="HireDate" />
		</Columns>
	</wijmo:C1GridView>
	<asp:AccessDataSource ID="dbEmployees" runat="server"
		DataFile="~/App_Data/C1NWind.mdb"
		SelectCommand="SELECT * FROM [Employees]"></asp:AccessDataSource>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ControlOptions" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Description" runat="server">
	<p>
		The <strong>C1GridView</strong> now supports filtering for <strong>C1TemplateField</strong> in the grid.
	</p>
	<p>
		The column will be filtered if the following column properties are set:
	</p>
	<ul>
		<li><strong>FilterOperator</strong> - the type of filtering to be performed.</li>
		<li><strong>FilterValue</strong> - the value which is used to filter the grid.</li>
	</ul>

	<p>
		End-user filtering is allowed if the <strong>DataField</strong> property is set and <strong>ShowFilter</strong> property is set to True.
	</p>
</asp:Content>
