This is a migrated thread and some comments may be shown as answers.

Raddoc slide down feature with editable form

1 Answer 38 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Ambuj asked on 13 Aug 2010, 11:56 AM
I am looking for a slidedown feature like to open the edit/add form in raddoc similar to igoogle widget. 

Pl. refer below link for discussion.

I would appreciate if someone can share sample code which demonstrate this feature.  Thanks in advance.


1 Answer, 1 is accepted

Sort by
Telerik team
answered on 18 Aug 2010, 03:14 PM
Hi Ambuj,

I created a sample project that I believe will help you get started with your application. Here is the source code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<head runat="server">
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableCdn="true">
        <CdnSettings TelerikCdn="Enabled" />
    <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
        <telerik:RadDockZone ID="RadDockZone1" runat="server" MinHeight="300px" Width="300px">
            <telerik:RadDock ID="RadDock1" runat="server" Title="RadDock-Title" Width="300px"
                Skin="Sunset" EnableAjaxSkinRendering="true" OnCommand="DockCommand" CommandsAutoPostBack="true">
                    <telerik:DockCloseCommand />
                    <telerik:DockExpandCollapseCommand />
                    <telerik:DockCommand Name="Edit" Text="Edit Dock" />
                    <asp:Panel ID="panelEditDock" runat="server" Style="border: 2px solid red;" Visible="false">
                        <asp:RadioButtonList ID="rbl1" runat="server" OnSelectedIndexChanged="rbl1_SelectedIndexChanged"
                            <asp:ListItem Text="Red" Value="Red" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="Black" Value="Black"></asp:ListItem>
                            <asp:ListItem Text="Green" Value="Green"></asp:ListItem>
                        Title:<asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
                        <asp:Button ID="Button1" runat="server" Text="Save Changes" OnClick="Button1_Click" />
                    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin accumsan euismod
                    tortor in semper. Cras vulputate egestas nunc, et pretium quam tincidunt euismod.
                    Integer vel augue sapien. Cras eu gravida neque. Vestibulum volutpat, lectus eget
                    pellentesque aliquet, mi erat lobortis ipsum, et volutpat ligula lorem sit amet
                    diam. Proin faucibus, sapien tempor porttitor imperdiet, tortor leo iaculis lectus,
                    in vulputate purus massa ut magna. Nunc rutrum euismod tincidunt. Lorem ipsum dolor
                    sit amet, consectetur adipiscing elit. Curabitur eros mi, vulputate vitae convallis
                    quis, aliquet facilisis nunc. Etiam eros massa, congue et luctus id, mattis commodo
                    ante. Vestibulum aliquam posuere felis sed cursus. Nulla rutrum lacus eu dui iaculis
                    id interdum mi facilisis. Quisque sem mi, hendrerit in elementum ac, dignissim vitae

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
public partial class Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
        if (!IsPostBack)
            txtTitle.Text = RadDock1.Title;
    protected void Button1_Click(object sender, EventArgs e)
        RadDock1.Title = txtTitle.Text;
    protected void rbl1_SelectedIndexChanged(object sender, EventArgs e)
        switch (rbl1.SelectedValue)
            case "Red":
                RadDock1.Skin = "Sunset";
            case "Black":
                RadDock1.Skin = "Black";
            case "Green":
                RadDock1.Skin = "Hay";
    protected void DockCommand(object sender, DockCommandEventArgs e)
        if (e.Command.Name == "Edit")
            panelEditDock.Visible = !panelEditDock.Visible;

All the best,
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question