Download Now Code Base AsyncDocs Contact Us
asyncPageRepeater
liveDemo
  • Clicking on a number above the results will display the corresponding page.
  • Clicking a column header will sort the data within that column.
  • Sorting on the first page is done using the entire item collection, all concurrent pages sort using the visible items (this behavior can be changed).
  • You may also click the next and previous buttons (on the right and left) of the page number strip to move sequentially through the pages.
1 - 10 of 55
  [ 1 ] | 2 | 3 | 4 | 5 | 6 
Member # First Name Last Name Account Balance
1 Fadi Cummings $166.5
2 Peter Glick $3580
3 Francois Mohos $6456.7
4 Buck Ernhard $196.8
5 David Wilson $79
6 Jennifer Mccullough $1695
7 Olga Sadfd $1259
8 Dino Mcmacken $1848
9 Natalie Taylor $151.56
10 David Mccarthy $109

AsyncPageRepeater Enhanced Demo 2

Description

As with all AsyncControls, the AsyncRepeater comes with many enhancements not found in the asp:Repeater control. Some of the more innovative and robust features are implemented via the inherited class, AsyncPageRepeater. As the name suggest it is a AsyncRepeater that implements not only paging, but built-in sorting. Along with the many DTHML effects that are built into the AsyncRepeater, it has combined the bonus visual and responsiveness of the AsyncControl with a killer function.

The AsyncPageRepeater boast two great features that everyone seems to recognize, paging and sorting. Paging is one of the best known ways to decrease load times and increase readability when it comes to displaying a lot of data. Sorting is the end all for ordering data. Again no database changes, and no code behind changes what so ever. Sorting comes with the price of adding some header controls, but you do not have to change any other components (no db change, no code behind change).



Features
  • Can be scrolled into view during an AsyncCallback.
  • Allows you to easily receive OnItemCommand, OnItemDataBound, OnFooterBound, OnHeaderBound, OnItemsSorted, OnPageChanging, and OnPageChanged events.
  • Easily implement paging and sorting with out ANY code behind changes.
  • Fully customizable look and feel.
  • Total control over paging and sorting.
  • Can be bound and re-bound during an AsyncCallback.
  • Easily create DHTML effects for your item templates to provide "rolling" item template colors, and mouse over highlighting effects.
  • Easily get a handle on any header and footer control.
  • Change the visibility during an AsyncCallback.
  • Supports many of the other properties/methods provided by AsyncRepeater.
   
<%@ Register Assembly="AsyncControls" Namespace="DelvingWare.AsyncControls" TagPrefix="dw" %>

<dw:AsyncPageRepeater ID="rptUsers" runat="server" 
PageSize="10" 
FirstPageFullSort="true"
EnableEffects="true" 
RollACssClass="rollA" 
RollBCssClass="rollB" 
HighlightCssClass="highlight" 
PagingComponentCssClass="pagingStrip" 
CssClass="asyncPgRep" 
NextPageComponentText="&lt;img src='../images/nextArrow.gif' style='border:0' title='Next'>"
PreviousPageComponentText="<img src='../images/prevArrow.gif' style='border:0' title='Previous'>"
OnItemDataBound="rptUser_ItemDataBound">
            <HeaderTemplate>
            <table cellpadding="4">
                <tr class="headlnk">
                    <td>
                        <dw:AsyncLinkButton ID="lbMemNum" 
                        SortDirection="Descending"
                        SortID="ltlMemNum" 
                        SortType="Number" 
                        runat="server">Member #</dw:AsyncLinkButton>
                    </td>
                    <td>
                        <dw:AsyncLinkButton ID="lbFirstName" 
                        SortID="ltlFirstName" 
                        SortType="Text" 
                        runat="server">First Name</dw:AsyncLinkButton>
                    </td>
                    <td>
                        <dw:AsyncLinkButton ID="lbLastName" 
                        SortID="ltlLastName" 
                        SortType="Text" 
                        runat="server">Last Name</dw:AsyncLinkButton>
                    </td>
                    <td>
                        <dw:AsyncLinkButton ID="lbAccBal" 
                        SortID="ltlAccBalance" 
                        SortType="Money" 
                        runat="server">Account Balance</dw:AsyncLinkButton>
                    </td>
                </tr>            
            </HeaderTemplate>        
            
            <ItemTemplate>
                <tr $roll$ $highlight$>
                    <td align="center">
                    <dw:AsyncLiteral runat="server" ID="ltlMemNum" />
                    </td>
                    <td>
                    <dw:AsyncLiteral runat="server" ID="ltlFirstName" />
                    </td>
                    <td>
                    <dw:AsyncLiteral runat="server" ID="ltlLastName" />
                    </td>
                    <td>
                    <dw:AsyncLiteral runat="server" ID="ltlAccBalance" />
                    </td>
                </tr>
            </ItemTemplate>
            
            <FooterTemplate>
            </table>
            </FooterTemplate>            
</dw:AsyncPageRepeater>