<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StringNotRecognizedAsAValidDateTime.aspx.cs"
    Inherits="StringNotRecognizedAsAValidDateTime" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager runat="server">
        </telerik:RadScriptManager>
        <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" Skin="Default" OnNeedDataSource="RadGrid1_NeedDataSource"
            AutoGenerateColumns="False" CellSpacing="0">
            <MasterTableView EditMode="InPlace">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridTemplateColumn>
                        <ItemTemplate>
                            <asp:Button ID="ibtnDiscountDateRule_Edit" AlternateText="Edit this rule" runat="server"
                                Text="Edit" CommandName="Edit" />
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:ImageButton ID="ibtnDiscountDateRule_Update" runat="server" CommandName="Update"
                                ImageUrl="/images/reports/save.gif" AlternateText="Update Rule" />
                            &nbsp;
                            <asp:ImageButton ID="ibtnDiscountDateRule_Cancel" runat="server" CommandName="Cancel"
                                ImageUrl="/images/Cancel-2-icon-16.png" AlternateText="Cancel Edit" />
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridDateTimeColumn DataField="RequiredDate" HeaderText="Start" DataFormatString="{0:d}"
                        UniqueName="DiscountDateRule_StartDate" PickerType="DatePicker" />
                    <telerik:GridDateTimeColumn DataField="ShippedDate" HeaderText="End" DataFormatString="{0:d}"
                        UniqueName="DiscountDateRule_EndDate" PickerType="DatePicker" />
                    <telerik:GridTemplateColumn HeaderText="Discount">
                        <ItemTemplate>
                            <asp:Label ID="lblDiscountDateRuleAmount" runat="server" />
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadNumericTextBox Type="Currency" NumberFormat-DecimalDigits="2" ShowSpinButtons="false"
                                Width="50px" ID="rntbDiscountAmount_Date" runat="server" InvalidStyleDuration="100">
                                <NumberFormat AllowRounding="True" KeepNotRoundedValue="False" />
                            </telerik:RadNumericTextBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridButtonColumn Text="Delete" ButtonType="ImageButton" ImageUrl="/images/icon_delete.gif"
                        ConfirmDialogType="RadWindow" ConfirmText="Are you sure you want to delete this date range discount rule?"
                        CommandName="Delete" />
                </Columns>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <ClientSettings EnableRowHoverStyle="true" Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true" />
        </telerik:RadGrid>
        <asp:Button ID="Button1" runat="server" Text="Postback" />
        <%--<asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=NorthwindEntities"
        ContextTypeName="NorthwindModel.NorthwindEntities" AutoGenerateOrderByClause="true"
            DefaultContainerName="NorthwindEntities" EnableFlattening="False" EntitySetName="Orders"
            Select="it.[OrderID], it.[CustomerID], it.[EmployeeID], it.[RequiredDate], it.[ShippedDate], it.[Freight], it.[ShipAddress]">
        </asp:EntityDataSource>--%>
    </div>
    </form>
</body>
</html>
