You can support docking in your web applications using Telerik's new control suite "Prometheus". Prometheus is completely redesigned to use Microsoft's ASP.NET Ajax. The Prometheus docking controls make it easy to define objects that may be dragged and areas where objects may be dragged to. With docking support you can create web portal sites, "PageFlake" style web pages (where the user can dynamically add controls and drag them around on the page), or even "post-it notes" can be added to the page. The current state-of-play is that the controls are in beta and have a few quirks, but the performance is very responsive and the look and feel is also quite good.
To use Prometheus "RadDock" controls first download and install the Microsoft ASP.NET Ajax extensions at http://ajax.asp.net/, then get the free Prometheus beta download at: http://www.telerik.com/products/aspnet-prometheus/download.aspx. Once installed, create a new project type "ASP.NET AJAX-Enabled Web Application". BTW, if you try to use the standard ASP.NET web application you will get really interesting results.
Your toolbox will have the new AJAX extension controls, including "ScriptManager". ScriptManager is the workhorse of Microsoft's ASP.NET Ajax that registers client side scripts that enable AJAX functionality. The ScriptManager is automatically placed on the default web page so you don't need to do anything further there.
Also in the toolbox are the new Prometheus controls. The three you need for drag and drop support are:
To test these controls drop a RadDockLayout, two RadDockZones within the RadDockLayout and RadDock controls in each of the RadDockZones.
How about adding content to the RadDock?
For example we could add another new Prometheus control "RadColorPicker":
<ContentTemplate> <telerik:RadColorPicker ID="RadColorPicker1" runat="server" Preset="Standard"> </telerik:RadColorPicker> </ContentTemplate>
To finish up we set the Skin property of RadDockLayout to "Longhorn". If you've used the current version of RadDock you're used to adding various skin files to the project. Not with the Prometheus version where the skins are built-in and you can choose the Skin property value from a drop down list. Finally you can set the title bar text for each RadDock using the Title property.
When you run the Prometheus version of the docking controls you should experience snappy responsiveness and a very respectiable UI. Try downloading Prometheus and retrofit some part of your current web application to support docking. Enjoy!
Note: if you want to learn Telerik RadControls from the ground up, check out the Falafel-authored, self-paced tutorial at http://www.telerik.com/support/self-paced-tutorial.aspx and download the sample projects from our community download site at http://www.falafel.com/community/files/Default.aspx.
Remember Me
a@href@title, i, strike, u
Copyright © 2003-2008 Falafel Software Inc.
Subscribe to Falafel Blogs
The opinions expressed herein are Falafel's employees own personal opinions and do not represent Falafel Software's view in any way in case they go bananas!