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

What changed for Q3 2012?

3 Answers 33 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 06 Nov 2012, 11:23 AM
Hi,

I use RadDock panels to give me a panel with a title bar.  Worked fine till Q3 now they all seem to float to the left.  Before they sat where they were put on the page.

Please could you advise me on any changes made between Q2 and Q3 so that I can get a work around for this problem.

Regards,

Jon

3 Answers, 1 is accepted

Sort by
0
Jon
Top achievements
Rank 1
answered on 07 Nov 2012, 09:06 AM
To further elaborate on the prior email, if this is run in the earlier version (I think I was on Q2 SP1 2012) then it will work, you should see the raddock window inside the table and centered.  

Now the window is below the table and not centred - actually I can understand it not being centred if it has been moved out of the table.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
    <head runat="server">
        <title></title>
        <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server"
            <style type="text/css">
                .RadDock
                {
                    position:relative ! important;
                }       
                 
                .RadDock table.rdTable tr.rdMiddle td.rdCenter .rdContent
                {
                    overflow:hidden;
                }
            </style>
        </telerik:RadCodeBlock>
    </head>
    <body class="sideColumn">
        <form id="form1" runat="server">
            <telerik:RadScriptManager ID="uxRadScriptManager" runat="server"></telerik:RadScriptManager>
            <telerik:RadStyleSheetManager ID="uxRadStyleSheetManager" Runat="server"></telerik:RadStyleSheetManager>
            <table cellspacing="0" cellpadding="0" style=" border:solid 1px black;" width="500px">
                <tr>
                    <td align="center">
                        this is centered and in the table
                        <telerik:RadDock ID="uxPanel" runat="server"
                            Title="Test" EnableRoundedCorners="False"
                            EnableDrag="False" Index="-1" Tag="" Width="400" >
                            <ContentTemplate>
                            but this isn't
                            </ContentTemplate>
                        </telerik:RadDock>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
0
Accepted
Slav
Telerik team
answered on 07 Nov 2012, 12:52 PM
Hello Jon,

I will write my response to your support ticket here as well so that it is available for anyone who encounters the described behavior.

Since the latest release of RadControls for ASP.NET AJAX the RadDock control is rendered as a direct child of the form on the page. To resolve this please use the recommended approach for positioning a RadDock on a specific location in the page - add a RadDockZone and dock the control inside as shown in the following code sample:
<table cellspacing="0" cellpadding="0" style="border: solid 1px black;" width="500px">
    <tr>
        <td align="center">
            this is centered and in the table
            <telerik:RadDockZone runat="server" ID="RadDockZone1" Width="400" style="border: none; padding: 0;">
                <telerik:RadDock ID="uxPanel" runat="server" Title="Test" EnableRoundedCorners="False"
                    EnableDrag="False" Index="-1" Tag="" Width="400">
                    <ContentTemplate>
                        but this isn't
                    </ContentTemplate>
                </telerik:RadDock>
            </telerik:RadDockZone>
        </td>
    </tr>
</table>


All the best,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Jon
Top achievements
Rank 1
answered on 07 Nov 2012, 01:57 PM
Hi Slav,

As mentioned in the support ticket this works fine now.  Many thanks for your help.

Regards,

Jon
Tags
Dock
Asked by
Jon
Top achievements
Rank 1
Answers by
Jon
Top achievements
Rank 1
Slav
Telerik team
Share this question
or