CallbackPager

rated by 0 users
This post has 2 Replies | 2 Followers

Not Ranked
Posts 3
Points 30
freddie24 Posted: Tue, Aug 5 2008 3:27 AM

Hi,

I recently found out that this little control exists. I have a little box on the right side showing 5 out of x recent posts . I want the user to page through it and it works so far.I also customized the pager accordingly but what I dont like is the fact that I apparently can not render the pager before the paged content.

Does anybody have an idea? I already tried to program my own control which extends the callbackpager control class. But I think the rendering order is somewhere else defined.

Thanks for any help.

freddie

Top 10 Contributor
Posts 3,424
Points 65,595
CS Developers
Ben Tiedt replied on Mon, Aug 25 2008 9:03 AM

The following example shows how to use CSS with the CallbackPager to render the page links above the paged content:

<CSControl:CallbackPager runat="server" ID="UserPager">
    <LeaderTemplate>
            <div style="position: relative; margin-top: 2em;">
            <div>
    </LeaderTemplate>
    <PagedContent>
       <CSControl:UserList runat="server">
          <QueryOverrides QueryType="Search" Role="SystemAdministrator" PageSize="10" PagerID="UserPager" />
          <ItemTemplate>
             <CSControl:UserData runat="server" Property="DisplayName" LinkTo="Profile" Tag="h4" />
          </ItemTemplate>
       </CSControl:UserList>
       </div>
       <div style="position: absolute; top: -2em;">
    </PagedContent>
    <TrailerTemplate>
            </div>
        </div>
    </TrailerTemplate>
</CSControl:CallbackPager>

Ben Tiedt's Blog

  • | Post Points: 20
Not Ranked
Posts 3
Points 30
freddie24 replied on Fri, Aug 29 2008 1:54 AM

Thank you very much. That guarded me against the brutish power of our web designer.

  • | Post Points: 5
Page 1 of 1 (3 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com