<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Filtros.aspx.vb" Inherits="Pessoal.Filtros" %>

<%@ 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"   >
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
            </asp:ScriptReference>
        </Scripts>
    </telerik:RadScriptManager>
    <div style="height: 100%; width: 100%;" >
    </div>
    
    <script type="text/javascript">
        function pageLoad() {
            var grid = $find('<%=RadGrid1.ClientID %>').get_masterTableView();
            var columns = grid.get_columns();

            for (var i = 0; i < columns.length; i++) {
                grid.resizeColumn(i, 140);
                grid.hideColumn(i);
            }

           grid.showColumn(0);
           grid.showColumn(1);
           grid.showColumn(2);
           grid.showColumn(7);
           grid.showColumn(8);
           grid.showColumn(26);
           grid.showColumn(27);

           
        }

    </script>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" 
                AllowPaging="True" AllowSorting="True" CellSpacing="0" Culture="pt-PT" 
                EnableHeaderContextFilterMenu="True" EnableHeaderContextMenu="True"               
                   FilterType="Combined" GridLines="None" GroupingEnabled="False">
                 <ClientSettings ReorderColumnsOnClient="true" AllowColumnsReorder="true" ColumnsReorderMethod="Reorder">
              
                <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="500px" />
                <Resizing AllowColumnResize="true" />
            </ClientSettings>
            </telerik:RadGrid>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
    
    </body>
</html>
