<%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Examples.Window.InternalContent.DefaultCS" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<
head
runat
=
"server"
>
<
title
>Telerik ASP.NET Example</
title
>
<
link
rel
=
"stylesheet"
type
=
"text/css"
href
=
"styles.css"
/>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
runat
=
"server"
ID
=
"RadScriptManager1"
/>
<
telerik:RadSkinManager
ID
=
"RadSkinManager1"
runat
=
"server"
ShowChooser
=
"true"
/>
<
div
class
=
"demo-container size-medium"
>
<
div
id
=
"restrictionZone"
></
div
>
<
telerik:RadWindow
RenderMode
=
"Lightweight"
ID
=
"RadWindow1"
RestrictionZoneID
=
"restrictionZone"
runat
=
"server"
Width
=
"580"
Height
=
"280"
VisibleOnPageLoad
=
"true"
Title
=
"Lightweight render mode"
>
<
ContentTemplate
>
<
p
>
The demo demonstrates 2 different rendering modes of RadWindow: Classic and Lightweight.
</
p
>
<
ul
>
<
li
>
<
strong
>Classic</
strong
> rendering is the old, well-known rendering mode of the control. The layout of the RadWindow is implemented using <
em
>table</
em
> elements.
</
li
>
<
li
>
<
strong
>Lightweight</
strong
> rendering, as the name implies, is focused on modern browsers with proper CSS support. The control layout is implemented using generic elements, such as <
em
>div</
em
> and <
em
>span</
em
>, as well as semantic elements for the title <
em
>(h6)</
em
>.
</
li
>
</
ul
>
<
p
>
<
strong
>Note</
strong
>: It's not recommended to mix <
strong
>classic</
strong
> and <
strong
>lightweight</
strong
> render modes on the same page. To ease skin transition, some of the class names are the same, thus conflicts with the styles are quite possible. To avoid them, try to use only one type of render mode on the page.
</
p
>
</
ContentTemplate
>
</
telerik:RadWindow
>
</
div
>
<
qsf:ConfiguratorPanel
runat
=
"server"
ID
=
"ConfigurationPanel1"
Title
=
"Render mode comparison"
>
<
Views
>
<
qsf:View
>
<
qsf:ConfiguratorColumn
runat
=
"server"
Title
=
"Render mode"
Size
=
"Narrow"
>
<
asp:RadioButtonList
ID
=
"RadioButtonList1"
runat
=
"server"
AutoPostBack
=
"True"
OnSelectedIndexChanged
=
"RadioButtonList1_SelectedIndexChanged"
CssClass
=
"fb-group"
RepeatLayout
=
"UnorderedList"
>
<
asp:ListItem
Value
=
"Classic"
>Classic</
asp:ListItem
>
<
asp:ListItem
Value
=
"Lightweight"
Selected
=
"True"
>Lightweight</
asp:ListItem
>
</
asp:RadioButtonList
>
</
qsf:ConfiguratorColumn
>
<
qsf:ConfiguratorColumn
runat
=
"server"
Title
=
"Classic vs. Light Rendering"
Size
=
"Wide"
>
<
table
class
=
"table"
>
<
thead
>
<
tr
>
<
th
></
th
>
<
th
>Classic</
th
>
<
th
>Lightweight</
th
>
</
tr
>
</
thead
>
<
tbody
>
<
tr
>
<
th
>Markup Size *</
th
>
<
td
>2.59 KB
</
td
>
<
td
>2.67 KB
</
td
>
</
tr
>
<
tr
>
<
th
>CSS Size</
th
>
<
td
>18.66 KB</
td
>
<
td
>10.09 KB</
td
>
</
tr
>
<
tr
>
<
th
>Image Sprite Size **</
th
>
<
td
>7.26 KB</
td
>
<
td
>30.91 KB</
td
>
</
tr
>
</
tbody
>
</
table
>
</
qsf:ConfiguratorColumn
>
</
qsf:View
>
</
Views
>
</
qsf:ConfiguratorPanel
>
</
form
>
</
body
>
</
html
>