+1-888-365-2779
Try Now
More in this section
Categories
Bloggers
Blogs RSS feed

Using "Rad Dock for ASP.NET AJAX" in Sitefinity

by Georgi Chokov
Here is a very simple way on how to use RadDock control in Sitefinity.

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.

Leave a comment