<%@ Page Title="" Language="C#" MasterPageFile="~/eosWinkartWeb/eosWinkartWeb.Master" AutoEventWireup="true" CodeBehind="AddPatern.aspx.cs" Inherits="WebKart.eosWinkartWeb.AddPatern" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%">
    <tr>
    <td class="RightTD">
          <asp:Label ID="lblPatternId" runat="server" Text="" Visible="false"></asp:Label>
          <asp:Button ID="btnPermission" runat="server" SkinID="btnOrange" 
              Text="دسترسی ها" Visible="False" onclick="btnPermission_Click"/>
          <asp:Button ID="btnEditPattern" runat="server" SkinID="btnOrange" 
              Text="تغییر نام" Visible="False" onclick="btnEditPattern_Click"/>
          <asp:Button ID="btnDeletePattern" runat="server" SkinID="btnOrange" 
              Text="حذف روند" Visible="False" onclick="btnDeletePattern_Click" />
          <asp:Button ID="btnAddPatern" runat="server" Text="ثبت روند" SkinID="btnOrange" 
                onclick="btnAddPatern_Click" />
    </td>
        <td class="RightTD">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ErrorMessage="*" ControlToValidate="txtPaternName"></asp:RequiredFieldValidator>
            <asp:TextBox ID="txtPaternName" runat="server" Width="250px"></asp:TextBox></td>
        <td class="LeftTD" width="200px">عنوان روند:</td>
    </tr>
    <tr>
    <td colspan="3" class="CenterTD">
    <telerik:radgrid runat="server" ID="grdPatterns" Skin="WebBlue" 
        AutoGenerateColumns="False" GridLines="None" AllowCustomPaging="false" 
        AllowPaging="false" AllowSorting="True" 
        GroupingEnabled="False" Font-Names="Tahoma" Font-Size="10pt" 
            onitemcommand="grdPatterns_ItemCommand" onsortcommand="grdPatterns_SortCommand">
    
    <MasterTableView NoDetailRecordsText="" 
        NoMasterRecordsText="اطلاعاتی برای نمایش موجود نمی باشد" 
        AllowCustomPaging="False">
        <Columns>
            <telerik:GridBoundColumn DataField="PatternName" HeaderText="عنوان روند " 
                UniqueName="PatternName" AllowSorting="true">
                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="right" />
                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="right" />
            </telerik:GridBoundColumn>
             <telerik:GridBoundColumn DataField="PatternId" HeaderText=" " 
                UniqueName="PatternId" Visible="false">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
   <ClientSettings EnableRowHoverStyle="true" ReorderColumnsOnClient="True" 
            EnablePostBackOnRowClick="true" AllowAutoScrollOnDragDrop="False">
         <Selecting EnableDragToSelectRows="False" />
        </ClientSettings>
</telerik:radgrid>
    </td>
    </tr>
</table>
</asp:Content>
