ListBox with datapager

4 posts, 0 answers
  1. Luffy
    Luffy avatar
    28 posts
    Member since:
    Jun 2011

    Posted 04 Jul 2011 Link to this post

    I have some issue putting a datapager to a list box. When i run my aspx page, it doesnt show any paging
     Following below is my code
    <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="RadListBox1">
     </telerik:RadDataPager>
     
      <telerik:RadListBox ID="RadListBox1" runat="server" AutoPostBack="True"
                                                    DataKeyField="EventLocation" DataSourceID="Listbox"
                                                    DataTextField="EventLocation" DataValueField="EventLocation"
                                                    DlisataKeyField="EventLocation" Skin="Black" allowpaging="true"
                                                    style="z-index: 1; left: 1109px; top: 114px; position: absolute; height: 48px; width: 155px; text-align: center;"> <ButtonSettings TransferButtons="All" />
        </telerik:RadListBox>

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 07 Jul 2011 Link to this post

    Hello Sherman,

    Take a look at the following demo which implements paging functionality with RadDataPager.
    DataPager / RadDataPager integration.

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Luffy
    Luffy avatar
    28 posts
    Member since:
    Jun 2011

    Posted 08 Jul 2011 Link to this post

    I will show some the codes and screenshot that i've done. 

    <telerik:RadDataPager ID="RadDataPager1" runat="server"
                                               PagedControlID="RadListBox2" Height="40px" Width="196px">
                            <Fields>           
       <telerik:RadDataPagerButtonField FieldType="FirstPrev" FirstButtonText="First" PrevButtonText="Prev" />
       <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="5" />
       <telerik:RadDataPagerButtonField FieldType="NextLast" NextButtonText="Next" LastButtonText="Last" />
                           </Fields
                                         </telerik:RadDataPager>
                                          
                                           <telerik:RadListBox ID="RadListBox2" runat="server" AutoPostBack="True"
                                               DataKeyField="EventCategory" DataSourceID="SqlDataSource3"
                                               DataTextField="EventCategory" DataValueField="EventCategory"
                                               DlisataKeyField="EventLocation" Skin="Black"
                                                
                                               style="z-index: 1; left: 44px; top: 86px; position: absolute; height: 48px; width: 155px; text-align: center;">
                                               <ButtonSettings TransferButtons="All" />
                                           </telerik:RadListBox>
  5. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 13 Jul 2011 Link to this post

    Hi Sherman,

    RadListBox doesn't implement IPageableItemContainer or IRadPageableItemContainer interfaces and it is not applicable with the RadDataPager.

    Greetings,
    Peter Filipov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top