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

<%@ 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></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <telerik:RadGrid ID="rgArtikli" runat="server" AllowPaging="True" AllowSorting="True"
        GridLines="None" PageSize="15" OnNeedDataSource="RadGrid1_NeedDataSource" ShowStatusBar="True"
        AllowFilteringByColumn="True" BorderStyle="None" AutoGenerateColumns="False"
        Visible="true" Width="100%">
        <ClientSettings AllowColumnsReorder="True" ColumnsReorderMethod="Reorder" EnableAlternatingItems="False"
            EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
            <Selecting AllowRowSelect="True" />
            <Scrolling UseStaticHeaders="True" />
            <Resizing AllowColumnResize="True" EnableRealTimeResize="True" />
        </ClientSettings>
        <ItemStyle Wrap="False" />
        <AlternatingItemStyle Wrap="False" />
        <MasterTableView IsFilterItemExpanded="False" EditMode="PopUp" InsertItemDisplay="Bottom"
            PageSize="15" GridLines="None" DataKeyNames="CustomerID">
            <Columns>
                <telerik:GridClientSelectColumn UniqueName="Selekcija">
                    <HeaderStyle Width="8%" />
                </telerik:GridClientSelectColumn>
                <telerik:GridBoundColumn DataField="CustomerID" HeaderText="Naziv" UniqueName="CustomerID">
                    <HeaderStyle Width="20%" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ContactName" HeaderText="Šifra" UniqueName="ContactName">
                    <HeaderStyle Width="10%" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="CompanyName" HeaderText="JM" UniqueName="CompanyName">
                    <HeaderStyle Width="5%" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Phone" HeaderText="Kolicina" UniqueName="Phone"
                    DataFormatString="{0:###,###.##}">
                    <HeaderStyle HorizontalAlign="Right" Width="10%" />
                    <ItemStyle HorizontalAlign="Right" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Address" HeaderText="Rezervacija" UniqueName="Address"
                    DataFormatString="{0:###,###.##}">
                    <HeaderStyle Width="10%" HorizontalAlign="Right" />
                    <ItemStyle HorizontalAlign="Right" />
                </telerik:GridBoundColumn>
                <telerik:GridNumericColumn DataField="Country" HeaderText="Min.kol." UniqueName="Country"
                    DataFormatString="{0:###,###.##}">
                    <HeaderStyle HorizontalAlign="Right" Width="10%" />
                    <ItemStyle HorizontalAlign="Right" />
                </telerik:GridNumericColumn>
                <telerik:GridNumericColumn DataField="City" HeaderText="Nab. cena" UniqueName="City"
                    DataFormatString="{0:###,###.00}">
                    <HeaderStyle Width="10%" HorizontalAlign="Right" />
                    <ItemStyle HorizontalAlign="Right" />
                </telerik:GridNumericColumn>
                <telerik:GridNumericColumn DataField="Fax" HeaderText="Pro. cena" UniqueName="Fax"
                    DataFormatString="{0:###,###.00}">
                    <HeaderStyle Width="10%" HorizontalAlign="Right" />
                    <ItemStyle HorizontalAlign="Right" />
                </telerik:GridNumericColumn>
                <telerik:GridBoundColumn DataField="Region" HeaderText="Porez" UniqueName="Region"
                    HeaderTooltip="Porez">
                    <HeaderStyle Width="8%" />
                </telerik:GridBoundColumn>
            </Columns>
            <PagerStyle Mode="Slider" FirstPageToolTip="Prva strana" LastPageToolTip="Poslednja strana"
                NextPagesToolTip="Sledeca strana" NextPageToolTip="Sledeca strana" PagerTextFormat="Promeni stranu: {4} &nbsp;Strana <strong>{0}</strong> of <strong>{1}</strong>, items <strong>{2}</strong> to <strong>{3}</strong> of <strong>{5}</strong>."
                PageSizeLabelText="Broj artikala po strani:" PrevPagesToolTip="Prethodna strana"
                PrevPageToolTip="Prethodna strana" BorderStyle="Solid" ShowPagerText="False" />
            <FilterItemStyle Wrap="True" />
        </MasterTableView>
        <SelectedItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
            Font-Underline="False" Wrap="True" />
    </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        SelectCommand="SELECT * FROM [Customers]"></asp:SqlDataSource>
    </form>
</body>
</html>
