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

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!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>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager runat="server">
        </asp:ScriptManager>
        <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="m_gvwUpdate_ScenariosMarketInputDataDataSource"
            AllowPaging="false" AllowSorting="false" Skin="Simple">
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="CustomerID" ClientDataKeyNames="CustomerID"
                TableLayout="Fixed" DataSourceID="m_gvwUpdate_ScenariosMarketInputDataDataSource">
                <PagerStyle Mode="NextPrevAndNumeric" Visible="true" AlwaysVisible="true" />
                <NoRecordsTemplate>
                    <div style="padding: 5px;">
                        <asp:Label ID="m_lbl_NoData" runat="server" Text="No data on database" />
                    </div>
                </NoRecordsTemplate>
                <Columns>
                    <telerik:GridBoundColumn DataField="ContactName" HeaderText="Name" SortExpression="ContactName"
                        UniqueName="ContactName">
                        <ItemStyle Wrap="True" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CompanyName" HeaderText="Strategic Period" SortExpression="CompanyName"
                        UniqueName="CompanyName">
                        <ItemStyle Wrap="True" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="Address" HeaderText="Official" ItemStyle-HorizontalAlign="Center">
                        <HeaderStyle Width="50px" />
                        <ItemTemplate>
                            <asp:Image runat="server" ID="m_img_Official" ImageUrl="~/Images/ok.png" AlternateText="Official"
                                SkinID="Grid" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="Country" HeaderText="Locked" ItemStyle-HorizontalAlign="Center">
                        <HeaderStyle Width="50px" />
                        <ItemTemplate>
                            <asp:Image runat="server" ID="m_img_IsReadOnly" ImageUrl="~/Images/ok.png" AlternateText="Locked"
                                SkinID="Grid" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="City" HeaderText="Created By" UniqueName="City"
                        SortExpression="City">
                        <ItemStyle Wrap="True" />
                        <HeaderStyle Width="120px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Phone" HeaderText="Creation Date" UniqueName="Phone"
                        SortExpression="Phone">
                        <ItemStyle Wrap="True" />
                        <HeaderStyle Width="120px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Fax" HeaderText="Modified By" UniqueName="Fax"
                        SortExpression="Fax">
                        <ItemStyle Wrap="True" />
                        <HeaderStyle Width="120px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PostalCode" HeaderText="Last Modify" UniqueName="PostalCode"
                        SortExpression="PostalCode">
                        <ItemStyle Wrap="True" />
                        <HeaderStyle Width="120px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="CopyColumn" ItemStyle-HorizontalAlign="Center">
                        <HeaderStyle Width="30px" />
                        <ItemTemplate>
                            <asp:ImageButton runat="server" ID="m_img_Copy" ImageUrl="~/Images/copySmall.png"
                                AlternateText="Copy" SkinID="Grid" ToolTip="Copy" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="UpdateColumn" ItemStyle-HorizontalAlign="Center">
                        <HeaderStyle Width="30px" />
                        <ItemTemplate>
                            <asp:ImageButton runat="server" ID="m_img_Update" ImageUrl="~/Images/editSmall.png"
                                AlternateText="Update" SkinID="Grid" ToolTip="Update" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="DeleteColumn" ItemStyle-HorizontalAlign="Center">
                        <HeaderStyle Width="30px" />
                        <ItemTemplate>
                            <asp:ImageButton runat="server" ID="m_img_Delte" ImageUrl="~/Images/deleteSmall.png"
                                AlternateText="Delete" SkinID="Grid" ToolTip="Delete" CommandName="Delete" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings>
                <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="100px" />
                <Selecting AllowRowSelect="True" />
                <KeyboardNavigationSettings EnableKeyboardShortcuts="false" />
            </ClientSettings>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="m_gvwUpdate_ScenariosMarketInputDataDataSource" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM Customers"
            runat="server"></asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
