info@syncworx.com
-
3/30/2010 8:21:07 AM
UniPager
We have a CMSDataList and UniPager,
I need the Pager to have Next, Previous and Numbers paging. I am using the following code.
<table> <tr> <td align="center"> <cms:CMSDataList CellPadding="15" ID="BooksDataList" runat="server" ClassNames="NCLW.Book" DelayedLoading="true" TransformationName="NCLW.Book.BookListing" RepeatColumns="1" SelectedItemTransformationName="cms.syncservice.ServiceDetail"> </cms:CMSDataList> </td> </tr> <tr> <td> <cms:UniPager ID="ucUniPagerRepeater" PageControl="BooksDataList" runat="server" PageSize="1" PagerMode="PostBack" DisplayPreviousNextAutomatically="false" HidePagerForSinglePage="false" ForeColor="Black" GroupSize="3" DisplayFirstLastAutomatically="false"> <NextPageTemplate> <a href="<%# Eval("NextURL") %>"> <asp:Image ID="imgNext" runat="server" ImageUrl="~/App_Themes/YallaFooz/Images/ChatFriendsRightArrow.jpg" Style="width: 27px; height: 22px" /> </a> </NextPageTemplate> <PageNumbersTemplate> <a href="<%# Eval("PageURL") %>"><%# Eval("Page") %></a> </PageNumbersTemplate> <PreviousPageTemplate> <a href="<%# Eval("PreviousURL") %>"> <asp:Image ID="imgPrevious" runat="server" ImageUrl="~/App_Themes/YallaFooz/Images/ChatFriendsLeftArrow.jpg" Style="width: 27px; height: 22px" /></a> </PreviousPageTemplate> <LayoutTemplate> <asp:PlaceHolder runat="server" ID="plcPreviousPage"></asp:PlaceHolder> <asp:PlaceHolder runat="server" ID="plcNextPage"></asp:PlaceHolder> </LayoutTemplate> </cms:UniPager> </td> </tr> </table>
It is not working, only the Previous and Next are showing. Appreciate your help. Regards,
|