Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
where is the CustomerPagerControl.ascx
posted

Hi ,

            I am trying to work out the sample for the webdatagrid for the Pager - Custom Pager Template . While i am trying on my own i could not  find the  user control that is given in the example I.e. "CustomerPagerControl.aspx" .  Can you please provide us that user control . I am trying to build custom pager Template in my application.

           Can you please clarify whether we can do the same Custom Pager Template in webHierarchialDataGrid .

 

Thanks and Regards

Parents
No Data
Reply
  • 3147
    Suggested Answer
    posted

    Hi,

    Here is very simple pager template sample:

        <ig:WebDataGrid ID="WebDataGrid1" runat="server" Height="350px" Width="400px" AutoGenerateColumns="False"
            DataSourceID="SqlDataSource1">
            <Columns>
                <ig:BoundDataField DataFieldName="EmployeeID" Key="EmployeeID">
                    <Header Text="EmployeeID" />
                </ig:BoundDataField>
                <ig:BoundDataField DataFieldName="FirstName" Key="FirstName">
                    <Header Text="FirstName" />
                </ig:BoundDataField>
                <ig:BoundDataField DataFieldName="LastName" Key="LastName">
                    <Header Text="LastName" />
                </ig:BoundDataField>
            </Columns>
            <Behaviors>
                <ig:Paging PageSize="2">
                    <PagerTemplate>
                        <asp:LinkButton ID="lnkFirst" Text="First" runat="server" CommandName="Page" CommandArgument="First"></asp:LinkButton>&nbsp;
                        <asp:LinkButton ID="lnkPrevios" Text="Previos" runat="server" CommandName="Page" CommandArgument="Prev"></asp:LinkButton>&nbsp;
                        <asp:LinkButton ID="lnkNext" Text="Next" runat="server" CommandName="Page" CommandArgument="Next"></asp:LinkButton>&nbsp;
                        <asp:LinkButton ID="lnkLast" Text="Last" runat="server" CommandName="Page" CommandArgument="Last"></asp:LinkButton>
                    </PagerTemplate>
                </ig:Paging>
            </Behaviors>
        </ig:WebDataGrid>

     

    That can be used in WebHierarchicalDataGrid as well.

Children
No Data