This post is on the older side and its content may be out of date.
Be sure to visit our blogs homepage for our latest news, updates and information.
You can add RadDock in a .master page thus gaining the ability to "move around" whole sections of controls freely on the page.
How to:
1. Create a master.page file.
2. Add the RadDock control to it.
3. Withing the RadDock add a "<asp:contentplaceholder" tags
The file it self should look like this:
| <%@ Master Language="C#" AutoEventWireup="true" CodeFile="RadDockMaster.master.cs" Inherits="App_Master_RadDockMaster" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title></title> |
| <asp:ContentPlaceHolder id="head" runat="server"> |
| </asp:ContentPlaceHolder> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <asp:ScriptManager runat="server" ID="scrManager"></asp:ScriptManager> |
| <div> |
| <telerik:RadDock ID="radDock" runat="server" Height="400" Width="400" Resizable="true"> |
| <ContentTemplate> |
| <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"> |
| </asp:ContentPlaceHolder> |
| </ContentTemplate> |
| </telerik:RadDock> |
| </div> |
| </form> |
| </body> |
| </html> |
4. Save and Upload the mater.page to Sitefinity.
Now when you create a page that is using this template you will have a place holder nested in the RadDock control, to add content in it.
Subscribe to get all the news, info and tutorials you need to build better business apps and sites