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
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> <asp:LinkButton ID="lnkPrevios" Text="Previos" runat="server" CommandName="Page" CommandArgument="Prev"></asp:LinkButton> <asp:LinkButton ID="lnkNext" Text="Next" runat="server" CommandName="Page" CommandArgument="Next"></asp:LinkButton> <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.