New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Mobile Rendering Overview

Updated over 6 months ago

Since Q2 2015 Beta release of Telerik UI controls RadDataPager is optimized for touch devices. The control provides responsive attributes which will allow the developers to actually define a responsive behaviour, in a convenient manner that suits to their set-up.

The responsive attributes are:

  • Hidden[Size] attribute — These are HiddenXs , HiddenSm , HiddenMd , HiddenLg , HiddenXl
If set to "true"Extra small device/<360pxSmall device /<=768pxMedium device/<=1024pxLarge device/<=1280px
HiddenXshiddenvisiblevisiblevisible
HiddenSmvisiblehiddenvisiblevisible
HiddenMdvisiblevisiblehiddenvisible
HiddenLgvisiblevisiblevisiblehidden

Example:

ASP.NET
<%--Hides the RadDataPagerPageSizeField under 768px--%>
<telerik: RadDataPagerPageSizeField HiddenXs="true" HiddenSm="true"/>

Result: Above 768px (in this case 780px) PageSize field is visible Responsive DataPager Ex1 Above 768px

Result: Under 768px PageSize field is hidden Responsive DataPager Ex1 Under 768px

  • Trim[Size] attribute — only applicable for RadDataPagerButtonField FieldType="Numeric". These are TrimXs , TrimSm , TrimMd , TrimLg , TrimXl
If set to "true"Extra small device/<360pxSmall device /<=768pxMedium device/<=1024pxLarge device/<=1280px
TrimXstrimall visibleall visibleall visible
TrimSmall visibletrimall visibleall visible
TrimMdall visibleall visibletrimall visible
TrimLgall visibleall visibleall visibletrim

Example:

ASP.NET
<%--Trims page numbers under 360px--%>
<telerik:RadDataPagerButtonField FieldType="Numeric" TrimXs="true"></telerik:RadDataPagerButtonField>

Result: Above 768px all page numbers are displayed Responsive DataPager Ex2 Above 768px

Result: Under 768px page numbers are trimmed Responsive DataPager Ex2 Under 768px

  • HorizontalPosition[Size] attribute — The values are Left , Center , Right.

Example:

ASP.NET
<telerik:RadDataPagerButtonField FieldType="FirstPrev" HorizontalPositionMd="Left"></telerik:RadDataPagerButtonField>
<telerik:RadDataPagerButtonField FieldType="Numeric" HorizontalPositionMd="Center"></telerik:RadDataPagerButtonField> 
<telerik:RadDataPagerButtonField FieldType="NextLast" HorizontalPositionMd="Right"></telerik:RadDataPagerButtonField>

Result: Responsive DataPager Ex3

HorizontalPositionMd="Center" tells that this element will be centered in the interval [769px, 1024px]. Above and below the behaviour is the default one. If you want to center this element for each screen size below 1024px you have to write HorizontalPositionXs="Center" HorizontalPositionSm="Center" HorizontalPositionMd="Center".

Not finding the help you need?
Contact Support