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

Migrating From RadDock ASP.NET To ASP.NET AJAX

To add RadDock for ASP.NET AJAX to an existing ASP.NET web application you need to follow these steps:

  1. Make sure you have installed ASP.NET AJAX. Info can be found at http://ajax.asp.net/docs/InstallingASPNETAJAX.aspx

  2. If your web application is not using ASP.NET AJAX you need to configure it to do so. Detailed instructions can be found at http://ajax.asp.net/docs/ConfiguringASPNETAJAX.aspx (Look for the topic called "Adding ASP.NET AJAX Configuration Elements to an Existing Web Site".)

  3. Add a ScriptManager control to the page (or user control) in which you want to add any Telerik® UI for ASP.NET AJAX.<asp:ScriptManager ID="ScriptManager1" runat="server" />If your page is a content page you can add the ScriptManager control in your master page. For further details about the ScriptManager control, see http://ajax.asp.net/docs/overview/ScriptManagerOverview.aspx.

  4. Drag and drop a control from the Telerik® UI for ASP.NET AJAX package or manually copy the Telerik.Web.UI.dll in the Bin folder.

  5. Replace the classic RadDock directive<%@ Register Assembly="RadDock.Net2" Namespace="Telerik.WebControls" TagPrefix="radd" %>with the new one of RadDock for ASP.NET AJAX:<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

Differences between RadDock "classic" and RadDock for ASP.NET AJAX

RadDock for ASP.NET AJAX has a new architecture exposing many new properties and methods. In addition, some of the properties and methods that existed in RadDock classic have been removed. The changes to RadDock are listed below:

Classes

The names of the classes have changed as follows:

RadDock ClassicRadDock for ASP.NET AJAX
RadDockingManagerRadDockLayout
RadDockingZoneRadDockZone
RadDockableObjectRadDock

Server-side API changes

RadDockingManager -> RadDockLayout Class

The following RadDockingManager properties and methods from RadDock "Classic" have been removed or changed in the RadDock for ASP.NET AJAX RadDockLayout class:

RadDockingManagerRadDockLayout
Properties
DockableObjectsReplaced by the RegisteredDocks property
DockingZonesReplaced by the RegisteredZones property
DockEnabledRemoved
EffectsEnabledRemoved
EffectsDurationRemoved
EffectsUpdateRateRemoved
ShowContentWhileDraggingRemoved
ShowToolTipWhileDraggingRemoved
Methods
LoadState()Removed: use the LoadDockLayout event instead
SaveState()Removed: use the GetRegisteredDocksState property and SaveDockLayout event instead.

The following property is new to the RadDockLayout component. It has no equivalent in the classic versions:

New PropertyDescription
StoreLayoutInViewStateBy default RadDockLayout stores the positions of its inner docks in the ViewState. If you want to store the positions in other storage medium such as a database or the Session, set this property to false . Setting StoreLayoutInViewState to false minimizes the ViewState usage.

RadDockingZone -> RadDockZone Class

The following RadDockingZone properties from RadDock "Classic" have been removed or changed in the RadDock for ASP.NET AJAX RadDockZone class:

 

RadDockingZoneRadDockZone
DockableObjectsReplaced by the Docks property
DockEnabledRemoved
FixedByWidthFitDocks
HighlightedStyleUse the HighlightedCssClass property instead.
IsHorizontalUse the Orientation property instead.
IsVerticalUse the Orientation property instead.
MinimumHeightRenamed to MinHeight
MinimumWidthRenamed to MinWidth
TypeReplaced in part by the Orientation property.

The following property is new to the RadDockZone control. It has no equivalent in the classic versions:

New PropertyDescription
EnableEmbeddedSkinsSpecifies whether to render links to the embedded skins.

RadDockableObject -> RadDock Class

The following RadDockableObject properties from RadDock "Classic" have been removed or changed in the RadDock for ASP.NET AJAX RadDock class:

 

RadDockableObjectRadDock
AllowedDockingZonesRemoved, use the ForbiddenZones property instead. ForbiddenZones lists the UniqueName properties of any RadDockZone controls where the RadDock control is not allowed to dock.
AllowedDockingZoneTypesRemoved, use the ForbiddenZones property instead.
BehaviorRemoved, use the DefaultCommands and Commands properties instead.
CanDockToRemoved.
ContainerRemoved, use the ContentContainer property instead.
DockingModeReplaced by the DockMode property.
ExpandedRemoved, use the Collapsed property instead.
IsDockedRemoved. Use DockZoneID != String.Empty .
IsFloatingRemoved. Use DockZoneID == String.Empty .
ParentDockingZoneRemoved. Use the DockZoneID property instead.
TextChanged. Text now specifies a string that appears in the content area of the control. Title specifies a string that appears in the title bar.
FloatingObjectEnabledGripsRemoved, use the DockHandle property instead.
DockedObjectEnabledGripsRemoved, use the DockHandle property instead.
ShowTitlebarWhenDisabledRemoved, use the DockHandle property instead.
TitleBarStyleRemoved. You can customize the appearance of the title bar using the TitlebarTemplate property.
VerticalGripStyleRemoved
HorizontalGripStyleRemoved
OnClientDockRemoved, use OnClientDockPositionChanged instead.
OnClientUnDockRemoved, use OnClientDockPositionChanging instead.
OnClientDockStateChangedRemoved, use OnClientDockPositionChanged instead.
OnClientDropRemoved, use OnClientDockPositionChanged or OnClientDragEnd instead.

The following properties and methods are new to the RadDock control. They have no equivalent in the classic versions:

Property or MethodDescription
Properties
AutoPostBackWhen true , the RadDock control performs a postback every time the its DockZoneID or Index property changes. When false , the DockPositionChanged event does not occur until another control on the page causes a postback.
CloseTextSpecifies the text of the tooltip for the Close command icon.
CollapseTextSpecifies the text of the tooltip for the Collapse command icon.
ExpandTextSpecifies the text of the tooltip for the Expand command icon.
IndexIndicates the position of the RadDock control in its parent DockZone , where 0 represents the first position. If the RadDock control is not docked, Index is -1.
LeftSpecifies the X-position of the RadDock control when it is not docked.
OnClientCommandSpecifies the name of a client-side function that is called when the user clicks a command icon in the title bar.
OnClientInitializeSpecifies the name of a client-side function that is called when the RadDock control is loaded. This can be used to initialize the control.
PinTextSpecifies the text of the tooltip for the Pin command icon.
TagSpecifies a string that is saved in the DockState . This allows you to add your own custom data to the RadDock control.
TextSpecifies a string that appears in the content area of the RadDock control.
TitleSpecifies the string that appears in the title bar of the RadDock control.
TitlebarContainerReturns the parent control in which the title bar template is instantiated.
TitlebarTemplateSpecifies the class of a template to use for the title bar area.
TopSpecifies the Y-position of the RadDock control when it is not docked.
UniqueNameSpecifies a unique identifier for the RadDock control that the RadDockLayout component uses to manage its position. If UniqueName is not set, the control's ID is used instead.
UnpinTextSpecifies the text of the tooltip for the Unpin command icon.
Methods
ApplyStateRestores the RadDock control to the state specified by a DockState object.
DockDocks the RadDock control in a specified RadDockZone .
GetStateGets a DockState object that represents the current state of the RadDock control.
UndockRemoves the RadDock control from its parent RadDockZone .

Client-side API changes

The client-side API of RadDock for ASP.NET AJAX has been completely revised to accommodate new features.

RadDockLayout object

The RadDockLayout component is not rendered on the page. Therefore, it does not have any client-side properties or methods to replace the client-side properties of the RadDockingManager client-side object.

RadDockZone object

All of the RadDock "Classic" client-side properties for RadDockingZone have been removed, as have the RadDockingZoneTypeFlags. The RadDockZone client-side object supports two new methods:

MethodDescription
dock(RadDock object [, index])Docks a specified RadDock object into the RadDockZone . An optional index parameter specifies the (0-offset) position where RadDock object should be placed among the children of the RadDockZone .
get_docks()Returns an array containing references to all docked RadDock controls.

RadDock object

The following table lists the properties and methods of the RadDockableObject client-side object that have been removed or changed in the new RadDock object:

RadDockableObjectRadDock
Properties
TopGrip, BottomGrip, LeftGrip, RightGripRemoved
IsDockableObjectRemoved
ParentDockingZoneUse get_parent() instead
TitleBarRemoved
Methods
Expand(expanded)Use set_collapsed(false) instead
Collapse()Use set_collapsed(true) instead
Pin()Use set_pinned(true) instead
Unpin()Use set_pinned(false) instead
IsGripVisible(oGrip)Removed
SetGripVisible(oGrip, bVisible)Removed
MoveTo(x, y, useEffects)Removed.
SetSize(width, height)Removed.
IsVisible(), Show(), Hide()Removed. Use get_closed() and set_closed() instead.
DockTo(zone)Removed. Use RadDockZone.dock(RadDock object, [, index]) .
GetCommandByName(sCommandName)Renamed to getCommand(sCommandName)
IsDocked()Removed.
AddEventHandler(sEventName, funcEventHandler)Removed. Use add_(funcEventHandler) instead. (eg add_dockPositionChanged(myHandler); )
RemoveEventHandler(sEventName, funcEventHandler)Removed. Use remove_(funcEventHandler) instead.
Events
OnClientDockStateChange, OnClientDock, OnClientUnDockRemoved. Use dockPositionChanged or dockPositionChanging instead.
OnClientDropRemoved.

The following properties, methods, and events are new to the RadDock client-side object. They have no equivalent in the classic versions:

 

Property or MethodDescription
Properties
get_forbiddenZones, set_forbiddenZonesGets or sets the forbidden zones where the RadDock object is not allowed to dock.
set_handleSets the dock handle of the RadDock object. This is the element within the RadDock object that the user can drag to move the RadDock object.
get_enableDrag, set_enableDragGets or sets a boolean controlling whether the RadDock object can be dragged.
Methods
conditionalPostbackCalls this.doPostBack if AutoPostBack is true .
doPostBackCauses a server-side DockPositionChanged event if the current position of the control differs from the position it had the last time the page was loaded.
getCommandReturns the DOM anchor element (<a>) associated with a specified command name.

See Also