Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
New to Telerik UI for ASP.NET AJAX? Download free 30-day trial
The API of RadDockLayout provides developers with the ability to save the positions of the dock objects on the page in various storage mediums, such as Database, Session, Cookie, etc. To accomplish such a scenario, you should use the LoadDockLayout and SaveDockLayout events. The example above saves the DockLayout in a cookie when the "Save Current Layout" button is clicked. The user can reset the DockLayout to a predefined one by pressing the "Reset Layout" button.
<%@ Page Language="c#" AutoEventWireup="true" Inherits="Telerik.Web.Examples.Dock.LoadSaveState.DefaultCS"CodeFile="DefaultCS.aspx.cs" %>
<!DOCTYPE html>
<
html
xmlns
=
'http://www.w3.org/1999/xhtml'
>
head
runat
"server"
title
>Telerik ASP.NET Example</
link
href
"styles.css"
rel
"stylesheet"
/>
</
body
form
id
"form1"
telerik:RadScriptManager
ID
"RadScriptManager1"
telerik:RadSkinManager
"RadSkinManager1"
ShowChooser
"true"
div
class
"demo-container size-wide"
telerik:RadDockLayout
EnableViewState
"false"
"RadDockLayout1"
OnLoadDockLayout
"RadDockLayout1_LoadDockLayout"
StoreLayoutInViewState
telerik:RadDockZone
"RadDockZone2"
Orientation
"vertical"
CssClass
"dock-zone"
telerik:RadDock
RenderMode
"Lightweight"
"RadDock3"
Title
"Databound control"
Width
"300px"
"higherZIndex"
ContentTemplate
asp:GridView
"GridView1"
"100%"
"RadDockZone1"
"RadDock2"
"Text"
Height
"80px"
Text
"This is a dock with some text inside"
qsf:ConfiguratorPanel
Views
qsf:View
qsf:Button
"btnSaveState"
"Save Current Layout"
OnClick
"btnSaveState_Click"
"btnReset"
"Reset Layout"
"btnReset_Click"