<%@ Page Language="VB" AutoEventWireup="true" CodeFile="DefaultVB.aspx.vb" Inherits="Telerik.FilterExamplesCSharp.CustomEditors.DefaultVB" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<title>Telerik ASP.NET Example</title>
<script type="text/javascript" src="scripts.js"></script>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1"></telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" CssClass="demo-container">
<div>
<telerik:RadFilter RenderMode="Lightweight" runat="server" ID="RadFilter1"
ExpressionPreviewPosition="Bottom"
DefaultGroupOperation="Or"
SharedCalendarMaxDate="11/01/1994"
SharedCalendarMinDate="05/01/1992"
OperationMode="ServerAndClient"
OnApplyExpressions="RadFilter1_ApplyExpressions"
OnExpressionItemCreated="RadFilter1_ExpressionItemCreated">
<ClientSettings>
<ClientEvents OnFilterCreated="FilterCreated" />
</ClientSettings>
<FieldEditors>
<telerik:RadFilterTextFieldEditor FieldName="FirstName" DisplayName="First Name" DefaultFilterFunction="Contains"></telerik:RadFilterTextFieldEditor>
<telerik:RadFilterMaskedTextBoxEditor FieldName="HomePhone" DisplayName="Home Phone"
Mask="(###) ###-####"
DisplayMask="(###) ###-####" DisplayPromptChar="_" PromptChar="#" />
<telerik:RadFilterDateFieldEditor FieldName="HireDate" DisplayName="Hire Date" PickerType="DatePicker" />
<telerik:RadFilterDropDownEditor FieldName="Country" DataTextField="Country" DataValueField="Country" />
<telerik:RadFilterNumericFieldEditor FieldName="Salary" DefaultFilterFunction="GreaterThan"
KeepNotRoundedValue="false"
DecimalDigits="0" />
<telerik:RadFilterBooleanFieldEditor FieldName="IsFired" DisplayName="Have Been Fired" />
</FieldEditors>
</telerik:RadFilter>
</div>
<br />
<div>
<telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" AllowPaging="True" runat="server" EnableLinqExpressions="false"
AutoGenerateColumns="false" GridLines="None"
OnNeedDataSource="RadGrid1_NeedDataSource">
<MasterTableView>
<Columns>
<telerik:GridBoundColumn DataField="EmployeeID" DataType="System.Int32" HeaderText="EmployeeID"
SortExpression="EmployeeID" UniqueName="EmployeeID" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName"
UniqueName="FirstName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="LastName" HeaderText="LastName" SortExpression="LastName"
UniqueName="LastName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Title" HeaderText="Title" SortExpression="Title"
UniqueName="Title">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Country" HeaderText="Country" SortExpression="Country"
UniqueName="Country">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn DataField="HomePhone" HeaderText="HomePhone" SortExpression="HomePhone"
UniqueName="HomePhone">
<ItemTemplate>
<%# string.Format("{0:(###) ###-####}", Convert.ToInt64(Eval("HomePhone")))%>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="HireDate" DataType="System.DateTime" HeaderText="HireDate"
SortExpression="HireDate" UniqueName="HireDate">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Salary" DataType="System.Boolean" HeaderText="Salary"
SortExpression="Salary" UniqueName="Salary">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="IsFired" DataType="System.Boolean" HeaderText="IsFired"
SortExpression="IsFired" UniqueName="IsFired">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
</div>
</telerik:RadAjaxPanel>
</form>
</body>
</html>