This is a migrated thread and some comments may be shown as answers.

ListBox with datapager

3 Answers 129 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Luffy
Top achievements
Rank 1
Luffy asked on 04 Jul 2011, 07:04 PM

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>

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 07 Jul 2011, 09:49 AM
Hello Sherman,

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

Thanks,
Princy.
0
Luffy
Top achievements
Rank 1
answered on 08 Jul 2011, 08:07 AM
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>
0
Peter Filipov
Telerik team
answered on 13 Jul 2011, 03:58 PM
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!

Tags
ListBox
Asked by
Luffy
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Luffy
Top achievements
Rank 1
Peter Filipov
Telerik team
Share this question
or