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

Clicking title template drags dock

4 Answers 42 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Beth Krawczuk
Top achievements
Rank 1
Beth Krawczuk asked on 12 Jun 2009, 10:07 PM
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

4 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 17 Jun 2009, 10:52 AM
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.
0
Beth Krawczuk
Top achievements
Rank 1
answered on 17 Jun 2009, 12:44 PM
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
0
Petko
Telerik team
answered on 23 Jun 2009, 07:51 AM
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.
0
Modern
Top achievements
Rank 1
answered on 11 Aug 2009, 11:42 AM
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
Tags
Dock
Asked by
Beth Krawczuk
Top achievements
Rank 1
Answers by
Pero
Telerik team
Beth Krawczuk
Top achievements
Rank 1
Petko
Telerik team
Modern
Top achievements
Rank 1
Share this question
or