Responsive Layouts for ASP.NET
WebForms
Lohith G N
About Me
Technical Evangelist
Microsoft MVP (ASP.NET/IIS)
lohith.nagaraj@telerik.com
@kashyapa
http://www.kashyapas.com
http://www.telerikhelper.net
Lohith G N
http://www.telerik.com
Agenda
• What is Responsive Layout?
• Introduction to Telerik UI for ASP.NET AJAX
• Introduction to RadPageLayout
• Demo
Responsive Design/Layout
Lets be responsive
Responsive Layout
• Adapt your application to client device
• Desktop, Tablet, Mobile Browsers
• 2 ways to achieve responsiveness
• Resize content placeholders
• Hide content placeholders
• Bootstrap
• Client Side Layout System
• Hides content placeholders
Media Queries
• Rule to define different style rules for different media
types/devices
• Part of CSS3
• Syntax:
@media screen and (max-width: 300px) {
body {
background-color: lightblue;
}
}
UI for ASP.NET AJAX
Complete Toolbox for AJAX Applications
UI for ASP.NET AJAX
Key Features
80+ AJAX Controls
Page Layout
Server Side Layout Control
RadPageLayout
• AJAX Server Control
• Page Layout Capability
• Simple & Light Weight
• Modelled after Grid System
• Supported Devices
• Extra Large,
• Large,
• Medium,
• Small
• Extra Small
Elements
• Container
• Outermost Element Rendered – Div
• Rows
• Containers for Columns.
• <telerik:LayoutRow />
• Columns
• Structural Unit
• <telerik:LayoutColumn />
Demo
Device Detection Framework
Which Device ?
Device Detection Framework
• Determine Screen Resolution Elegantly
• Pass UserAgent String to get the Screen Size:
• Small – 600px
• Medium – 601 to 1024px
• Large – 1025 to 1366px
• ExtraLarge - >1366px
• Detector.GetScreenSize(UserAgent)
• Telerik.Web.Device.Detection.dll
Reducing Bandwidth
• Use DDF to Get the Screen Size
• Hide portions not required
• Reduces content sent to client
• Bandwidth saved
Demo
Thanks !
Lohith.Nagaraj@Telerik.com

Server Side Responsive Layouts for ASP.NET WebForms using Telerik UI for ASP.NET AJAX