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

Responsive Types of Behavior

The Telerik UI for ASP.NET AJAX controls deliver a set of responsive behaviors that enable you to integrate them into the web design and provide responsive, adaptive, elastic, and fluid capabilities.

Specifics

The following list defines the features of the responsive behaviors a control can acquire:

  • Fluid controls—A fluid control can take up 100% of the width of its parent and resize with it in real-time as opposed to stretching initially and not responding to changes in the size of the container. Fluid controls fill in their containing object in the HTML layout. Most Telerik ASP.NET AJAX controls now feature fluid behaviors.

    The fluid concept

    Sample of fluid behavior

  • Responsive controls—The responsive controls feature single HTML rendering and are adapted for various device and browser sizes in the browser through styles and scripts. The whole script and style information is transmitted to the browser, and with CSS media queries the browser presents the optimized layout for the control. A responsive control will have the same HTML rendering in all resolutions, but CSS rules or JavaScript logic may reorder, resize, or even hide certain elements from its UI to make it more suitable for the current dimensions. For more information, refer to the responsive control demos online.

    The responsive concept

    Sample of responsive behavior

  • Elastic controls—Elastic behavior means that the control will grow and shrink appropriately to maintain a size that is relative to the font-size in use on the web page. In this way, end users can zoom or change the font sizes in their browser, and allow the controls to size appropriately. This feature is usually achieved by using em units for font-size and padding settings. For more information, refer to the elastic control demos online.

    The elastic concept

    Sample of elastic behavior

  • Adaptive controls—Adaptive controls feature multiple HTML renderings with the appropriate styles to support various devices. Usually, at least one mode is optimized for mobile devices. When a page that contains an adaptive control is requested, the control defines on the server which HTML rendering is optimal for the browser and for the device which request the content. For more information, refer to the adaptive control demos online.

    The adaptive concept

    Sample of adaptive behavior

For more information on the responsive control types, refer to the assembled sample implementations of all of these features on the responsive web design sample website.

CSS Selectors for Elastic Design

The following example demonstrates the selectors for all controls that support elastic design and how setting the default font size of the page can affect all Telerik controls in it.

As of 2016 Q1 SP1 each Telerik® UI for ASP.NET AJAX control takes the font-size of the page automatically. If the developer does not set it explicitly (Example 1), this is up to the client's browser and a common default value is 16px.

Example 1: Setting default font for the page with the default value for the Telerik controls.

CSS
body {
	font-size: 20px;
	font-family: "Segoe UI", Arial, Sans-serif;
}

The following example provides the CSS selectors that enable you to resize the supported UI elements through a font-size change and demonstrates the elastic design capabilities of the controls.

CSS
/* AutoCompleteBox */ html .RadAutoCompleteBox, html .RadAutoCompleteBoxPopup,
/* Button */ html .RadButton,
/* Calendar */ html .RadCalendar,
/* ComboBox */ html .RadComboBox, html .RadComboBoxDropDown,
/* DataForm */ html .RadDataForm,
/* DataPager */ html .RadDataPager,
/* Dock */ html .RadDock,
/* DropDownList */ html .RadDropDownList, html .rddlPopup,
/* DropDownTree */ html .RadDropDownTree, html .rddtPopup,
/* Editor */ 	div.RadEditor,
				div.RadEditor .reToolbarWrapper,
				div.RadEditor .reToolBar
				 div.reDropDownBody
/* Filter */ html .RadFilter, html .RadMenu,
/* Gantt */ html .RadGantt,
/* ImageGallery */ html .RadImageGallery,
/* Input */ html .RadInput,
/* LightBox */ html .RadLightBox,
/* ListBox */ html .RadListBox,
/* Map */ html .RadMap,
/* MediaPlayer */ html .RadMediaPlayer,
/* Menu */ html .RadMenu,
/* Notification */ html .RadNotification,
/* PanelBar */ html .RadPanelBar,
/* PivotGrid */ html .RadPivotGrid,
				html .PivotGridWindow,
/* ProgressBar */ html .RadProgressBar,
/* Rating */ html .RadRating,
/* Rotator */ html .RadRotator,
/* SearchBox */ html .RadSearchBox, html .rsbPopup,
/* SiteMap */ html .RadSiteMap,
/* Slider */ html .RadSlider,
/* SocialShare */ html .RadSocialShare,
/* TagCloud */ .RadTagCloud,
/* Ticker */ body, /* or any other selector that will affect the ticker */
/* ToolTip */ html .RadToolTip,  
/* TreeMap */ html .RadTreeMap,
/* TreeList */ html .RadTreeList,
/* TreeView */ html .RadTreeView,
/* Window */ html .RadWindow {
	font-size: 24px;
}

The following example demonstrates the CSS selectors used for the RadFormDecorator elements and shows the elastic capabilities of the control. For more information, refer to the article on the elastic capabilities in the FormDecorator.

CSS
/* FormDecorator */
html.RadForm .rfdSkinnedButton,
html.RadForm .rfdTextInput,
html.RadForm.rfdLabel label,
html.RadForm.rfdLabel .rfdAspLabel,
html.RadForm.rfdTextbox input,
html.RadForm.rfdTextarea textarea,
html.RadForm.rfdFieldset fieldset,
html.RadForm.rfdFieldset legend,
html.RadForm .rfdSelect,
html.RadForm.rfdHeading h4,
html.RadForm.rfdHeading h5,
html.RadForm.rfdHeading h6,
html.RadForm .riTextBox,
html.RadForm .rfdValidationSummaryControl,
html.RadForm .rfdLoginControl {
	font-size: 24px;
}

/* Headings */
html.RadForm.rfdHeading h4 {
	font-size: 40px;
}
html.RadForm.rfdHeading h5 {
	font-size: 35px;
}
html.RadForm.rfdHeading h6 {
	font-size: 30px;
}

/* ListBox Styles */
html.rfdSelectBox {
	font-size: 24px;
}

/* drop down arrow positions should be tweaked */
html.RadForm .rfdDropDownArrow
{
	right: 10px;
	top: 10px;
}

/* checkboxes and radio buttons' positions should be tweaked */
html.RadForm .rfdCheckboxChecked .rfdToggleImage,
html.RadForm .rfdCheckboxUnchecked .rfdToggleImage,
html.RadForm .rfdRadioChecked .rfdToggleImage,
html.RadForm .rfdRadioUnchecked .rfdToggleImage
{
	top: 10px;
}

List of Controls with Responsive Behaviors

The following table lists the responsive capabilities of the Telerik UI for ASP.NET AJAX controls.

ControlElasticFluidResponsiveAdaptive
AjaxN/AN/AN/AN/A
AutoCompleteBoxYesYesN/AN/A
BarcodeN/AN/AN/AN/A
BinaryImageN/AN/AN/AN/A
ButtonYesYesNoNo
CalendarYesYesNoNo
CaptchaN/ANoN/AN/A
Chart (HTML5)N/AN/A (but possible)N/A (but possible)N/A
ChartN/AN/AN/AN/A
CheckBoxYesYesNoNo
ColorPickerYesNoNoNo
ComboBoxYesYesN/AN/A
DataFormYesYesNoNo
DataPagerYesYesYesYes
DiagramN/AN/AN/AN/A
DockYesN/AYesN/A
DropDownListYesYesN/AN/A
DropDownTreeYesYesN/AN/A
EditorYesYesYesYes
FileExplorerLimitedYesNoNo
FilterYesNoNoNo
FormDecoratorYesYesYesN/A
GanttYesYesYesNo
GaugeN/AN/AN/AN/A
GridNoYesNoYes
ImageButtonYesYesNoNo
ImageEditorYesYesNoNo
ImageGalleryYesYesYesYes
InputYesNoN/ANo
LightBoxYesYesNoYes
LinkButtonYesYesNoNo
ListBoxYesYesN/AN/A
ListViewNoYesNoNo
MapYesYesN/AN/A
MediaPlayerYesYesNoYes
MenuYesYesYes (custom CSS)Yes
NotificationYesYesYesN/A
ODataDataSourceN/AN/AN/AN/A
OrgChartYesN/AN/AN/A
PanelBarYesYesN/AN/A
Persistence FrameworkN/AN/AN/AN/A
PivotGridYesYesNoNo
Progress AreaYesYesNoNo
Progress BarYesYesYesNo
PushButtonYesYesNoNo
RatingYesNoNoN/A
RibbonBarYesYesNoNo
RotatorYesYesNoN/A
SchedulerNoYesN/AYes
SearchBoxYesNoN/AN/A
SiteMapYesYesN/AN/A
SliderYesYesYesN/A
SocialShareYesYesNoNo
SpellNoNoNoNo
SplitterLimitedYesYesN/A
TabStripYesYesN/AN/A
TagCloudYesN/AYesN/A
TickerYesYesNoN/A
TileYesYesN/AN/A
TileListYesYesYesYes
ToolBarYesYesYesN/A
ToolTipYesN/AYesN/A
ToggleButtonYesYesN/AN/A
TreeMapYesYesNoNo
TreeListYesYesNoNo
TreeViewYesNoN/AN/A
Upload (Async)YesYesNoNo
Upload (Cloud)YesYesNoNo
WindowYesNoNoN/A
WizardYesYesYesYes
XmlHttpPanelN/AN/AN/AN/A
ZipLibraryN/AN/AN/AN/A

See Also