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

Changing RadDock default command text disables Drag

6 Answers 167 Views
Dock
This is a migrated thread and some comments may be shown as answers.
sky35366
Top achievements
Rank 1
sky35366 asked on 03 Jun 2007, 01:56 AM
I have noticed that Changing the displayed text of a defaultcommand (CloseText,PinText etc) somehow prevents the docks from being dragged at run time. Resetting the changes one more enables dragging the docks.

Has this bug already been reported ? Is there a solution?

I have also noted that when modifying a docks properties in design view, sometimes that erases code in source view. I´ll explain myself... I have the following markup:

...
<telerik:RadDock ID="GoogleSrch" runat="server" Width="98%" >
    <ContentTemplate>
        <uc2:GooSrch ID="GooSrch1" runat="server" />
    </ContentTemplate>
</telerik:RadDock>
...

whenever I modify the RadDock properties in design view, it erases "</ContentTemplate>" and I have to add it manually.

6 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 04 Jun 2007, 12:48 PM
Hello sky35366,

There is a bug in RadDock which makes it to throw a client-side exception when you set one of the CloseText/PinText/etc. properties. It was immediately fixed, you could find the new version of the control in the following forum topic:
http://www.telerik.com/community/forums/thread/b311D-mkedd.aspx

Regarding the design mode problem, I would need some more time for research. I will post a fix as soon as I figure out what's wrong.

Thank you for the bug report, your points have been updated.

Greetings,
Valeri Hristov (Senior Developer, MCSD)
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
sky35366
Top achievements
Rank 1
answered on 04 Jun 2007, 03:17 PM
Thankyou..Will install the hotfix immediately.

There is another detail though.... I downloaded the prometheus beta on saturday and only the RadControls_Prometheus_2007_1_521_trial_hotfix.zip is available for download. I checked once again and still only the 521 hotfix is on the list. Shouldn't that be updated?
0
Valeri Hristov
Telerik team
answered on 04 Jun 2007, 03:50 PM
Hello sky35366,

We often post unofficial hotfix builds of the controls in the forums, especially when someone finds a critical bug. When the fixed bugs and improvements become many enough, or sometimes on regular time intervals, we release the official service pack. The next service pack release date is not yet known, but most probably will be after a couple of weeks.

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

Instantly find answers to your questions at the new Telerik Support Center
0
sky35366
Top achievements
Rank 1
answered on 04 Jun 2007, 10:10 PM
I have installed the latest hotfix and have since been unable to reproduce the error of the disappearing tag even though it happened almost 20 times during work yesterday. I'll keep a lookout for this problem if it ever happens again.

Thankyou for your support.
0
sky35366
Top achievements
Rank 1
answered on 09 Jun 2007, 10:36 PM
The disappearing "</contenttemplate>" tag problem is back again.

For some reason I was unable to reproduce the problem using a stripped down version of my code, but it's back once more.

In the code that follows, whenever I add a control (in design view) to the raddockzone in the rightmost column, in source view, the corresponding "</contenttemplate>" end tag disappears.

Here is "default.aspx":

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
 
<%@ Register Src="vinculos.ascx" TagName="vinculos" TagPrefix="uc4" %> 
 
<%@ Register Src="Img/Themes/Blue/GooBot.ascx" TagName="GooBot" TagPrefix="uc3" %> 
 
<%@ Register Src="Img/Themes/Blue/GooSrch.ascx" TagName="GooSrch" TagPrefix="uc2" %> 
 
<%@ Register Src="Img/Themes/Blue/GooTop.ascx" TagName="GooTop" TagPrefix="uc1" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
 
<head runat="server"
    <title>Mis Vínculos</title> 
    <link href="~/Img/Themes/Blue/style1000.css" rel="stylesheet" type="text/css" /> 
     <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"
    </script> 
    <script type="text/javascript"
    _uacct = "UA-750795-2"
    urchinTracker(); 
    </script> 
</head> 
 
<body> 
    <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <div class="maindiv"
        <center> 
        <uc1:GooTop ID="GooTop1" runat="server" /> 
        <table border="0" cellpadding="0" cellspacing="0"
            <tr> 
                <td colspan="3" class="topborder" ></td
            </tr> 
            <tr> 
                <td class="leftborder"
                </td> 
                <td align="center"
                        <telerik:RadDockLayout ID="RadDockLayout1" runat="server" > 
                    <table cellpadding="0" cellspacing="0" class="formattable"
                        <tr> 
                            <td colspan="3" class="header" > 
                                 
                            </td> 
                        </tr> 
                        <tr> 
                            <td colspan="3" class="hormenu"
                           &nbsp; 
                            </td> 
                        </tr> 
                        <tr> 
                            <td class="srchbar" align="center" colspan="3"
                                <div id="srch"
                                    <iframe id="SearchFrame" src="GooSrch.htm" frameborder="0" width="450px" scrolling="no" height="60"
                                        <href="GooSrch.htm">Search Page</a> 
                                    </iframe> 
                         
                                </div> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td class="leftcol" > 
                                <telerik:RadDockZone ID="RadDockZone2" runat="server" style=" border:0px; text-align:left" BorderStyle="None" BorderWidth="0px" MinHeight="300px" > 
                                <telerik:raddock runat="server" id="UserInfo" title="Login"   DockMode="Docked" ForbiddenZones="RadDockZone3" DefaultCommands="ExpandCollapse" BorderStyle="None" BorderWidth="0px" > 
                                        <contenttemplate> 
                                            <class="innerWrp"
                                                <asp:LoginView ID="LoginView1" runat="server"
                                                    <AnonymousTemplate> 
                                                        <asp:Login ID="Login1" runat="server"
                                                            <LayoutTemplate> 
                                                                <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse" class="logintable"
                                                                    <tr> 
                                                                        <td> 
                                                                            <table border="0" cellpadding="0"
                                                                                 
                                                                                <tr> 
                                                                                    <td align="right" style="width: 63px"
                                                                                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Usuario:</asp:Label></td
                                                                                    <td style="width: 154px"
                                                                                        <asp:TextBox ID="UserName" runat="server" Width="80px" CssClass="usertextbox"></asp:TextBox> 
                                                                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" 
                                                                                            ErrorMessage="Requerido" ToolTip="User Name is required." ValidationGroup="ctl05$Login1">*</asp:RequiredFieldValidator> 
                                                                                    </td> 
                                                                                </tr> 
                                                                                <tr> 
                                                                                    <td align="right" style="width: 63px; padding-left:5px"
                                                                                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Contraseña:</asp:Label></td
                                                                                    <td style="width: 154px"
                                                                                        <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="80px" CssClass="passtextbox"></asp:TextBox> 
                                                                                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" 
                                                                                            ErrorMessage="Requerido" ToolTip="Password is required." ValidationGroup="ctl05$Login1">*</asp:RequiredFieldValidator> 
                                                                                    </td> 
                                                                                </tr> 
                                                                                <tr> 
                                                                                    <td colspan="2" style="padding-top:5px; padding-left:5px" align="center" > 
                                                                                        <asp:CheckBox ID="RememberMe" runat="server" Text="  Recordarme" /> 
                                                                                    </td> 
                                                                                </tr> 
                                                                                <tr> 
                                                                                    <td align="center" colspan="2" style="color: red"
                                                                                        &nbsp;</td> 
                                                                                </tr> 
                                                                                <tr> 
                                                                                    <td align="right" colspan="2"
                                                                                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="ctl05$Login1" CssClass="loginbutton" /> 
                                                                                    </td> 
                                                                                </tr> 
                                                                            </table> 
                                                                        </td> 
                                                                    </tr> 
                                                                </table> 
                                                            </LayoutTemplate> 
                                                        </asp:Login> 
                                                    </AnonymousTemplate> 
                                                    <LoggedInTemplate> 
                                                        <center> 
                                                        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="vertical-align:top;"
                                                            <tr valign="top"
                                                                <td valign="top" align="center" > 
                                                                    <img alt="user" src="Img/user.gif" width="48px" height="48px"  /> 
                                                                </td> 
                                                                <td >Usuario: <br />&nbsp;&nbsp;&nbsp;&nbsp;<asp:LoginName ID="LoginName1" runat="server" Width="72px" /><br /><br /> 
                                                                 
                                                                 
                                                                </td> 
                                                            </tr> 
                                                        </table> 
                                                        <% Response.Write("<href=\"http://www.misvinculos.com/" + Page.User.Identity.Name + ".aspx\">Mi Portal</a> &nbsp;-&nbsp; <href=\"http://www.misvinculos.com/perfil.aspx\">Mi Perfil</a>"); %> 
                                                        &nbsp;-&nbsp;<asp:LoginStatus ID="LoginStatus1" runat="server" /> 
                                                        </center> 
                                                         
                                                        
                                                         
                                                    </LoggedInTemplate> 
                                                </asp:LoginView> 
                                                         
                                            </p> 
                                            </ContentTemplate> 
                                    </telerik:raddock> 
                                </telerik:RadDockZone> 
                            </td> 
                            <td class="midcol"
                                <telerik:RadDockZone ID="RadDockZone3" runat="server" style="width:450px; border:0px;" BorderStyle="None" BorderWidth="0px" MinHeight="300px"
                                    <telerik:RadDock ID="Favoritos" runat="server" DockMode="Docked" ForbiddenZones="RadDockZone2,RadDockZone4" DefaultCommands="ExpandCollapse" Title="Mis Favoritos" BorderStyle="None" BorderWidth="0px"
                                    <ContentTemplate> 
                                    
                                        <uc4:vinculos ID="Vinculos1" runat="server" /> 
                                          
                                        </ContentTemplate> 
                                        </telerik:RadDock> 
                                         
                                </telerik:RadDockZone> 
                            </td> 
                            <td class="rightcol"
                                <telerik:RadDockZone ID="RadDockZone4" runat="server" style="width:198px;border:0px;" BorderStyle="None" BorderWidth="0px" MinHeight="300px"
                                    <telerik:RadDock ID="RadDock1" runat="server" > 
                                        <ContentTemplate> 
                                            
                                              </ContentTemplate> 
                                    </telerik:RadDock> 
                                 
                                </telerik:RadDockZone> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td colspan="3" class="botlinks" style="height: 18px"
                                <asp:LinkButton ID="LinkButton3" runat="server">Ayuda</asp:LinkButton>&nbsp;&nbsp; 
                                <asp:LinkButton ID="LinkButton2" runat="server">¿Que es esto?</asp:LinkButton>&nbsp;&nbsp; 
                                <asp:LinkButton ID="LinkButton1" runat="server">Crea tu portal</asp:LinkButton>&nbsp; 
                            </td> 
                        </tr> 
                    </table> 
                    </telerik:RadDockLayout> 
                 
                </td> 
                <td class="rightborder"
                </td> 
            </tr> 
            <tr> 
                <td colspan="3" class="bottomborder"
                </td> 
            </tr> 
        </table> 
         
             
             
             
        </center> 
        </div> 
        <center> 
            <uc3:GooBot ID="GooBot1" runat="server" /> 
        <div class="footer"
            Diseño por <href="http://www.planetagrafico.net/Promover">PromoVer</a> 
        </div> 
        </center> 
    </form> 
</body> 
</html> 
 

and here is the corresponding stylesheet:

* { 
    padding: 0; 
    margin: 0; 
}  
 
body { 
    background: #fff; 
    font: .74em "Trebuchet MS" Verdana, Arial, sans-serif; 
    line-height: 1em;  
a { 
    color: #3B6EBF; 
    text-decoration: none; 
 
a:hover { 
    text-decoration: underline; 
 
td{vertical-align:top;} 
 
.topborder 
     background-image: url('top1000.jpg'); 
     background-position:center; 
     background-repeat:no-repeat; 
     height:30px; 
     width:950px; 
 
 
.leftborder 
    background-image: url('left1000.jpg'); 
    background-repeat:repeat-y; 
    background-position:right; 
    width:22px; 
     
 
.rightborder 
    background-image: url('right1000.jpg'); 
    background-repeat:repeat-y; 
    width:22px; 
    background-position:right; 
 
.bottomborder 
    background-image: url('bot1000.jpg'); 
     background-position:center; 
     background-repeat:no-repeat; 
     height:30px; 
     width:950px; 
 
.maindiv 
    padding: 10px 0 10px 0; 
 
.formattable 
width:850px; 
 
.header { 
    height: 100px; 
    background: #85ACF7 url('hidr.jpg'); 
 
.header h1 { padding-left: 17px; padding-top: 22px; font-size: 22px; color: #FFF; } 
.header h1 a { font-size: 22px; color: #FFF; text-decoration: none;} 
.header h2 { padding-left: 17px; padding-top: 0px; font-size: 17px; color: #FFF; } 
 
.hormenu 
    background: #F6F9FB;  
    border-bottom: 1px solid #E1E1E1;  
    padding: 0px; 
    background-repeat:repeat-y; 
    font-size:10pt; 
 
.srchbar 
     text-align:center; 
     height:20px; 
     padding: 10px 0 0 0; 
 
.leftcol 
width: 200px; 
 text-align:left; 
 
.midcol 
width:450px; 
    text-align:left; 
 
.rightcol 
width:200px; 
text-align:right; 
 
.botlinks 
    margin: 20px auto 0px auto; 
    text-align:center; 
 
 
 
.clear { 
    display: block; 
    clear: both; 
    width: 100%; 
    height:1px; 
    overflow:hidden; 
 
.footer 
    text-align: center; 
    color: #666; 
 
.raddock{text-align:left;font:11px/14px arial,verdana,sans-serif} 
.raddock .rdTitlebar{height:auto;background-image:none !important;font-size:1.1em;line-height:2em} 
.raddock .rdTitle{background-image:none !important;} 
.raddock div{border-color:#eee !important} 
.raddock .rdCommands{padding-right:5px;} 
.raddock .rdCommands .rdClose{background:url(dockPortalClose.gif) 0 -7px transparent;} 
.raddock .rdCommands .rdCollapse{background:url(dockPortalCollapse.gif) -7px -7px transparent;} 
.raddock .rdCommands .rdExpand{background:url(dockPortalExpand.gif) -7px -7px transparent;} 
.raddock .innerWrp{margin:0;padding:10px} 
 
#UserInfo *{color:#fff} 
#UserInfo .rdTitlebar{background-color:#4C84EF} 
#UserInfo .rdContent{background-color:#85ACF7;font-weight:bold} 
 
.logintable 
     
 
.usertextbox 
    color:#000 !Important; 
    width:80px !Important; 
.passtextbox 
    color:#000 !important; 
    width:80px !Important; 
.loginbutton 
    background-color:Transparent; 
    border-style:solid; 
    border-width:1px; 
    border-color:#fff; 
 
#GoogleSrch {background:#fff;} 
#GoogleSrch {border:0px !important} 
 
#Favoritos{background:#A6C1F7;} 
    #Favoritos .rdTitlebar{background:#719EF3;} 
    #Favoritos .rdTitle{color:#fff;} 
    #Favoritos .rdContent div div *{color:#fff;} 
    #Favoritos .rdContent img{border:2px solid #85ACF7 !important} 
    #Favoritos .rdContent a{font-size:1.2em;font-weight:bold} 
 
.TablaVinculoCell 
 text-align:left; 
.TablaVinculoCell a 
    font-family:"Trebuchet MS" Verdana, Arial, sans-serif; 
    font-size:small !important; 
 
.vinculotitle 
    color:White; 
    font-family:"Trebuchet MS" Verdana, Arial, sans-serif; 
    font-size:medium; 
    font-weight:bold; 
     font-variant:small-caps; 
     font-style:italic; 
     text-decoration: underline; 
 
 

0
Petya
Telerik team
answered on 13 Jun 2007, 11:25 AM
Hello,

We were able to reproduce the problem you describe. However, it appears only randomly and it is extremely difficult for us to investigate it since it has not been caused by RadDock's code. I realize that it is an annoying issue, we have logged it in our system, but I cannot guarantee whether and when it will be solved. Thank you for your understanding.


Regards,
Petya
the Telerik team

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