Clicking title template drags dock

5 posts, 0 answers
  1. Beth Krawczuk
    Beth Krawczuk avatar
    26 posts
    Member since:
    Feb 2008

    Posted 12 Jun 2009 Link to this post

    When I click on the dock title bar (created with a template) the dock completely moves its location (switches with the dock above it).  How can I prevent this from happening.  I don't want to set the drag handle, I just don't want the dock to move on click.  I want it to move on drag only.

    Thank you,
    Beth
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 17 Jun 2009 Link to this post

    Hello Beth,

    I created a sample project with a RadDockZone and three RadDocks on it, but was not able to reproduce the problem that you get. One of the three has a title bar created with a template. When I click on it, the dock does not change its position (i.e. it behaves exactly as it should). So, I believe that something else is causing the error. Can you please provide the source code of your project, so we can reproduce the errors?

    This is the source code of the example that I tested:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
     
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
    <!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 id="Head1" runat="server"
        <title></title
    </head> 
    <body> 
        <form id="form1" runat="server" method="post"
        <asp:ScriptManager ID="ScriptManager1" runat="server"
        </asp:ScriptManager> 
        <telerik:RadDockLayout runat="server" ID="RadDockLayout1"
            <telerik:RadDockZone runat="server" ID="RadDockZone1" Width="600px" Height="300px" 
                Style="float: left; margin-right: 15px;"
                <telerik:RadDock runat="server" ID="RadDock1" Title="RadDock1" Height="50px"
                </telerik:RadDock> 
                <telerik:RadDock runat="server" ID="RadDock2" Height="50px" Width="600px"
                    <TitlebarTemplate> 
                        <asp:UpdatePanel runat="server" ID="UpdatePanel1"
                            <ContentTemplate> 
                                <asp:Label ID="lblTitle" runat="server" Text="This is a TitleBar Template"></asp:Label> 
                                <asp:Button ID="btnTitle" runat="server" Text="Title Button" /> 
                            </ContentTemplate> 
                        </asp:UpdatePanel> 
                    </TitlebarTemplate> 
                </telerik:RadDock> 
                <telerik:RadDock runat="server" ID="RadDock3" Title="RadDock3" Height="50px"
                </telerik:RadDock> 
            </telerik:RadDockZone> 
        </telerik:RadDockLayout> 
        </form> 
    </body> 
    </html> 
     
     


    All the best,
    Pero
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Beth Krawczuk
    Beth Krawczuk avatar
    26 posts
    Member since:
    Feb 2008

    Posted 17 Jun 2009 Link to this post

    Thank you for your response!

    I will try and put together a snippet of my code for you to test, but in the meantime here is an example in one of the telerik demos where the docks switch places as well and I'm not sure what causes it (when I compare scenarios).
    http://demos.telerik.com/aspnet-ajax/dock/examples/clientsideapi/defaultcs.aspx

    The only thing I can think of has something to do with the defaultcommand being set (which I do to show just the collapse one).
    ~ Beth
  4. Petko
    Admin
    Petko avatar
    45 posts

    Posted 23 Jun 2009 Link to this post

    Hello Beth Krawczuk,

    The behavior of the docks in this example is not correct and we will investigate this issue - I updated your points for bringing this problem to our attention.
    The current problem is affected by the fact, that the dockzone wrappers are: table cells, table rows and tables and can be avoided if these wrappers are removed.

    If this approach doesn't help you, please, open a support ticket and send us your project . Once we receive it, will be able to provide you a solution.

    Regards,
    Petko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Modern
    Modern avatar
    12 posts
    Member since:
    Mar 2009

    Posted 11 Aug 2009 Link to this post

    I had the same problem when I was setting the body direction rtl when i removed this direction the click on  title didn't move the Docks anymore :)
    Please let me know if this solved your problem
Back to Top