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

Dock controls on page do not move and not selectable

6 Answers 118 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Kia
Top achievements
Rank 1
Kia asked on 10 Mar 2008, 04:35 AM
Hi,

I've built a new page with the following code, but when I run the project, I can not select the dock to move. it acts as a static page and the text is selected rather than the control acting like a window.

Also I can't seem to get any of the examples working. When I paste the aspx and vb code in, they return a whole lot of errors every time which I have to play with till I have them all resolved, then they don't work like they should. There must be some step I'm missing in the project.

Example aspx not playing fair(no specific vb code):


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test.aspx.vb" Inherits="Test" %>

<%@ register tagprefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">

<html>
<head id="Head1" runat="server">
</head>
<body class="BODY">
    <form id="Form1" method="post" runat="server">
        <telerik:radscriptmanager id="ScriptManager" runat="server" />
        <br />
        <telerik:raddocklayout runat="server" id="RadDockLayout1">
            Docking Zone 1
            <telerik:raddockzone runat="server" id="RadDockZone1" width="330" minheight="250">
                <telerik:raddock runat="server" id="RadDock1" title="doc box 1">
                    <contenttemplate>
                        <div style="padding: 15px;">
                            RadDock control 1.<br />
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </div>
                    </contenttemplate>   
                </telerik:raddock>
                <telerik:raddock runat="server" id="RadDock2" title="dick box 2">
                    <contenttemplate>
                        <div style="padding: 15px;">
                            RadDock control 1.<br />
                            <asp:Button ID="Button1" runat="server" Text="Button" />
                        </div>
                    </contenttemplate>   
                </telerik:raddock>
            </telerik:raddockzone>
        </telerik:raddocklayout>
    </form>
</body>
</html>

6 Answers, 1 is accepted

Sort by
0
Kia
Top achievements
Rank 1
answered on 10 Mar 2008, 07:13 AM
An addition to my earlier post, I should point out that I have Rad Controls for ASP Q2 installed which seems to be fine. I have many controls working including the RadDock controls. But the new Prometheus install does not seem so simple. I just tried the calendar and date picker and they also don't work as they should, but the RadGrid works with the exception of the date picker on the date columns.

I definitely feel I've missed a step in declaring something.

Any help would be highly appreciated. Thanks
Kia
0
Sophy
Telerik team
answered on 10 Mar 2008, 04:31 PM
Hi Kia,

We are not sure what my be the reason for experiencing the problem. Do you receive any javascript errors? If  javascript errors occur on the page they may confuse the proper functioning of our controls. Please, make sure that you have added the ASP.NET AJAX Configuration Elements in your Web.config file.

ASP.NET Ajax Framework on which all Telerik's Prometheus controls are based needs some additional settings in the Web.config file more detailed information about which you can find here. For your convenience I have attached a sample page containing the code you have sent us as well as the Web.config file with all the needed settings for running the page.

Please, let us know if you need further assistance.

Best regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Kia
Top achievements
Rank 1
answered on 11 Mar 2008, 03:19 AM
Thanks Sophy. After looking into it I noticed that the AJAX elements were not inserted into the Web.config. After manually entering the details it finally started to work. Only, I don't remember manually enter all this in before(I could be wrong). Will I have to set up all these elements manually first on every website I work on?

Also, now that I have the docking working, I tried dropping a grid into the dock, but just doing that causes 14 new errors to appear. Turns out that the "ContentTemplate" tag is not opened automatically when the control is dropped in. Even when I manually create the tag, dropping the new control in will mess up the contentTemplate tag. If I then switch to source view and back to design I get a "Could not crate control" error. Is this normal?

What I find is that I have to create the new control elsewhere on the page, set it up and then manually move the html tags to the RadDoc's contentTemplate tag. It all feels like a lot more work than it used to be and a backward step.


Thanks
Kia
0
Accepted
Sophy
Telerik team
answered on 11 Mar 2008, 12:52 PM
Hello Kia,

Thank you for your feedback.

As I mentioned in my previous reply Telerik's Prometheus controls are based on ASP.NET Ajax Framework. If you install  ASP.NET Ajax Extensions when creating a new WebSite you will have the option to create Ajax-Enabled WebSite whose Web.config will contain the needed settings and you will not need to add them manually. You can find attached a screenshot which shows this option. Otherwise, if your application does not use ASP.NET Ajax you should follow the instructions described in this help article.

Regarding the other question you have asked the problem with the stripping of the ContentTemplate when adding a control inside RadDock in design time is a known issue. We have already logged it in our bug tracking system and will be fixed for one of the next updates of the control. The problem is referenced in a note in RadDock "Prometheus" help in the Getting Started help article.
  
If you have other questions, do contact us again.

Best regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Sophy
Telerik team
answered on 11 Mar 2008, 12:58 PM
Hello Kia,

Excuse me for having forgotten to attach the promised screenshot. You can find it attached now.

All the best,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Accepted
Kia
Top achievements
Rank 1
answered on 11 Mar 2008, 01:41 PM
Right you are Sophy. I should pay better attention to these little things. Thanks for your help. I looking forward to the fix for the contenttemplate issue.

Cheers,
Kia
Tags
Dock
Asked by
Kia
Top achievements
Rank 1
Answers by
Kia
Top achievements
Rank 1
Sophy
Telerik team
Share this question
or