Thanks to its versatility RadDataPager can be integrated with wide range of controls. The above example demonstrates how one can configure the control to provide paging capabilities to RadCalendar in multiview mode.
<%@ Page Language="VB" AutoEventWireup="false" Inherits="Telerik.DataPagerExamplesVBNET.RadDataPagerIntegration.DefaultVB" CodeFile="DefaultVB.aspx.vb" %><%@ Register TagPrefix="telerik" Namespace="Telerik.QuickStart" %><%@ Register TagPrefix="telerik" TagName="Header" Src="~/Common/Header.ascx" %><%@ Register TagPrefix="telerik" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %><%@ Register TagPrefix="telerik" TagName="Footer" Src="~/Common/Footer.ascx" %><%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <telerik:HeadTag runat="server" ID="Headtag2"></telerik:HeadTag></head><body class="BODY"> <form runat="server" id="mainForm" method="post"> <telerik:Header runat="server" ID="Header1" NavigationLanguage="VB" /> <!-- content start --> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"> <telerik:RadCalendar ID="RadCalendar1" runat="server" MultiViewColumns="4" MultiViewRows="3" PresentationType="Preview" FocusedDate="01-01-2010" EnableNavigation="false" EnableMonthYearFastNavigation="false"> </telerik:RadCalendar> <telerik:RadDataPager ID="RadDataPager1" runat="server" OnPageIndexChanged="RadDataPager1_PageIndexChanged" OnTotalRowCountRequest="RadDataPager1_TotalRowCountRequest" PageSize="1" OnFieldCreated="RadDataPager1_FieldCreated"> <Fields> <telerik:RadDataPagerButtonField FieldType="FirstPrev" /> <telerik:RadDataPagerTemplatePageField> <PagerTemplate>Current year: <strong> <%# Container.Owner.CurrentPageIndex + minYear %> </strong> </PagerTemplate> </telerik:RadDataPagerTemplatePageField> <telerik:RadDataPagerButtonField FieldType="NextLast" /> <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="16" /> </Fields> </telerik:RadDataPager> </telerik:RadAjaxPanel> <!-- content end --> <telerik:Footer runat="server" ID="Footer1"></telerik:Footer> </form></body></html>
Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.
Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.
If you have any questions, do not hesitate to contact us at sales@telerik.com.