2013-09-05 39 views
1

我已經啓用其中有DataPager的一個radlistview選擇最後一頁......如何在radlistview DataPager的

但是,當我啓動網站目前其上加載列表視圖的第一個數據頁(即註釋的第一頁)。有沒有辦法改變它,以便打開最後一頁?

這是當前radlistview ...

<telerik:RadListView ID="RadListViewComments" runat="server" AllowPaging="True" DataKeyNames="ID" DataSourceID="SqlDataSourceComments" PageSize="5"> 
    <LayoutTemplate> 
     <div class="RadListView RadListViewFloated RadListView_Default"> 
      <div class="rlvFloated rlvAutoScroll"> 
       <div id="itemPlaceholder" runat="server"> 
       </div> 
      </div> 
      <telerik:RadDataPager ID="RadDataPager1" runat="server"> 
       <Fields> 
        <telerik:RadDataPagerButtonField FieldType="Numeric" /> 
       </Fields> 
      </telerik:RadDataPager> 

     </div> 

<ItemTemplate> 
       <div class="rlvI" style="width: 700px; margin-bottom: 50px" margin-right: 100%> 
        <asp:Label ID="ownerLabel" runat="server" Text='<%# Eval("owner") %>' /> &nbsp - &nbsp 
        <asp:Label ID="dateLabel" runat="server" Text='<%# Eval("commentdate")%>' /> 
        <br /> 
        <asp:Label ID="commentLabel" runat="server" Text='<%# Eval("comment") %>' /> 
       </div> 
    </ItemTemplate> 

    <EmptyDataTemplate> 
     <div class="RadListView RadListView_Default"> 
      <div class="rlvEmpty"> 
       There are no previous comments.</div> 
     </div> 
    </EmptyDataTemplate> 
</telerik:RadListView> 

感謝

回答