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

Unable to drag Raddock objects

6 Answers 133 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 13 Jun 2007, 05:12 PM

I have no issues with the non-Prometheus items and these look fine as do the RadDockZone and RadDockLayout controls but they can't be dragged.  When hover over them the four arrow drag control comes up but clicking and dragging doesn't move them at all.  Here is my aspx which I tried running on the hotfix and then the 6/12/2007 hotfix:

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
    Namespace="System.Web.UI" TagPrefix="asp" %> 
 
<%@ 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 runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
 
        <asp:ScriptManager id="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        </telerik:RadAjaxManager> 
 
        <telerik:RadDockLayout ID="RadDockLayout1" runat="server">  
            <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="19px" Width="612px">  
            </telerik:RadDockZone> 
 
            <br /> 
            <br /> 
            <br /> 
            <br /> 
            <br /> 
 
            <telerik:RadDockZone ID="RadDockZone2" runat="server" Height="63px" Width="619px" Orientation="Horizontal">  
                <telerik:RadDock ID="RadDock1" runat="server" Width="300px" DefaultCommands="None">  
                    vcxvz</telerik:RadDock> 
            </telerik:RadDockZone> 
        </telerik:RadDockLayout> 
    </form> 
</body> 
</html> 

Dave

6 Answers, 1 is accepted

Sort by
0
Dave
Top achievements
Rank 1
answered on 13 Jun 2007, 05:34 PM
Thanks to an odd behavior in the vopy and paste function between my VM and my desktop OS I got the wrong code in there.  Here is the actual code.

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
    Namespace="System.Web.UI" TagPrefix="asp" %> 
<%@ 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 runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
 
        <asp:ScriptManager id="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        </telerik:RadAjaxManager> 
 
        <telerik:RadDockLayout ID="RadDockLayout1" runat="server">  
            <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="19px" Width="612px">  
            </telerik:RadDockZone> 
 
            <br /> 
            <br /> 
            <br /> 
            <br /> 
            <br /> 
 
            <telerik:RadDockZone ID="RadDockZone2" runat="server" Height="63px" Width="619px" Orientation="Horizontal">  
                <telerik:RadDock ID="RadDock1" runat="server" Width="300px" DefaultCommands="None">  
                </telerik:RadDock> 
            </telerik:RadDockZone> 
        </telerik:RadDockLayout> 
    </form> 
</body> 
</html> 
 
0
Valeri Hristov
Telerik team
answered on 14 Jun 2007, 11:20 AM
Hello Dave,

Do you have code-behind which adds more controls to the page? Your ASPX seems to work, but it is very simple and I suspect that the code-behind has something to do with the problem.

Sincerely yours,
Valeri Hristov (Senior Developer, MCSD)
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Dave
Top achievements
Rank 1
answered on 14 Jun 2007, 01:38 PM
I didn't put anything in there.  This is what I have for Default.aspx.cs:

using System;  
using System.Data;  
using System.Configuration;  
using System.Web;  
using System.Web.Security;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using System.Web.UI.WebControls.WebParts;  
using System.Web.UI.HtmlControls;  
 
public partial class _Default : System.Web.UI.Page   
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
 
    }  
}  
 
0
Dave
Top achievements
Rank 1
answered on 14 Jun 2007, 01:41 PM
From the same machine I am developing on I am able to view and run your older demos with drag and drop toolbars and the new Prometheus ones.

I am also experiencing the deletion of the end of my </ContentTemplate> from RadDock objects when I edit the toolbar contained in them.  I have dealt with this by keeping all of them at the same indentation level so I can quickly copy and paste in the code that is deleted each time I add or change a toolbar item or property.

Dave
0
Dave
Top achievements
Rank 1
answered on 14 Jun 2007, 06:33 PM
More data to help resolve this.  First, I had a colleage pull the project from source control and run it on his development system.  We got the same result and he doesn't have the Prometheus stuaff installed, he just ran it.  Like me he is able to run the samples on your site jsut fine.

I went and took the sample that showed the grip handle I wanted and hacked out all the uneeded items (or at least what I thought wasn't needed) and tried that.  It doesn't work either... I can see it and all locks fine, I can mouse over the grips and the cursor changes to show I can drag... but when I click and drag nothing moves.  Here is that modifed code form the DockHandle sample:

<%@ page language="C#" autoeventwireup="true" codefile="sampletest.aspx.cs" Inherits="sampletest" %> 
 
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
    Namespace="System.Web.UI" TagPrefix="asp" %> 
 
<%@ register tagprefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" %> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
 
<head id="Head1" runat="server">  
    <title>Untitled Page</title> 
</head> 
 
<body class="BODY">  
    <form id="Form1" method="post" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:raddocklayout runat="server" id="RadDockLayout1">  
            <telerik:raddockzone runat="server" id="RadDockZone1" orientation="Vertical" minheight="200px" 
                width="200px">  
                <telerik:raddock id="RadDock2" title="RadDock2" runat="server" width="200px" dockhandle="Grip" 
                    text="DockHandle is set to Grip. This mode is suitable for scenarios when you do not need the DockCommand items and you want to maximize the content size.">  
                </telerik:raddock> 
                <telerik:raddock id="RadDock3" title="RadDock3" runat="server" width="200px" dockhandle="None" 
                    text="DockHandle is set to None. This mode is suitable for scenarios when you want to disable the drag and drop.">  
                </telerik:raddock> 
                <telerik:raddock id="RadDock4" title="RadDock4" runat="server" width="200px" dockhandle="TitleBar" 
                    text="DockHandle is set to TitleBar. In this mode the TitleBar is visible and you have access to the DockCommand items.">  
                </telerik:raddock> 
            </telerik:raddockzone> 
        </telerik:raddocklayout> 
    </form> 
</body> 
</html> 


Dave
0
Petio Petkov
Telerik team
answered on 18 Jun 2007, 08:58 AM

Hello Dave,

I think that you recieve the following JScript error:

Error message "Microsoft JScript runtime error: 'Sys' is undefined"

Suggested solution:

This error occurs when you have added a control from RadControls "Prometheus" but your application is not configured to use ASP.NET AJAX. To fix it you need to follow the steps described at http://ajax.asp.net/docs/ConfiguringASPNETAJAX.aspx (check the topic called Adding ASP.NET AJAX Configuration Elements to an Existing Web Site)


More about this problem you can find on the following link:
http://www.telerik.com/help/radcontrols/prometheus/?Troubleshooting.html

If this doesn't help you , please open a new support ticket and send us a simple running project with web.config included where we can observe this behavior. 

Greetings,
Petio Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Dave
Top achievements
Rank 1
Answers by
Dave
Top achievements
Rank 1
Valeri Hristov
Telerik team
Petio Petkov
Telerik team
Share this question
or