Vertical Resize When Docked. Why not?

6 posts, 1 answers
  1. Valery
    Valery avatar
    45 posts
    Member since:
    Nov 2008

    Posted 10 Mar 2010 Link to this post

    Hi there,

    While there is a good reason for docks not to be resizable horizontally when docked could you tell what prevents implementing vertical resize? And is there any workaround to make docks resizable?

    Thank you,
    Valery.
  2. Answer
    Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 15 Mar 2010 Link to this post

    Hello Valery,

    The RadDock is created to be used as a layout control and it is most often used to be docked in a RadDockZone with FitDocks= true(RadDock's width is 100%). In this case the width of the RadDock must be "controlled from the RadDockZone", not from the end user. So we decided to disable the resize when a RadDock is docked.
    Here is a workaround that makes the dock resizable while docked to a zone:
    <%@ 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">
    <head id="Head1" runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div>
            <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
                <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="300px" Width="500px"
                    FitDocks="false">
                    <telerik:RadDock ID="RadDock1" runat="server" Width="300px" Title="RadDock-Title"
                        OnClientResizeEnd="ResizeEnd" OnClientInitialize="DockInit" OnClientDockPositionChanged="DockPositionChanged"
                        Resizable="true">
                        <ContentTemplate>
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            CONTENT
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                        </ContentTemplate>
                    </telerik:RadDock>
                </telerik:RadDockZone>
            </telerik:RadDockLayout>
        </div>
        </form>
     
        <script type="text/javascript">
            //Workaround to make dock resizable whilst docked
            var currentZone;
            Telerik.Web.UI.RadDock.prototype.oldResizeStart = Telerik.Web.UI.RadDock.prototype.onResizeStart;
            Telerik.Web.UI.RadDock.prototype.onResizeStart = function()
            {
                currentZone = this._dockZoneID;
                this._dockZoneID = null;
     
                this.oldResizeStart();
            }
            function ResizeEnd(dock, args)
            {
                dock._dockZoneID = currentZone;
                currentZone = null;
            }
            function DockInit(dock, args)
            {
                dock._configureHandles(true);
            }
            function DockPositionChanged(dock, args)
            {
                dock._configureHandles(true);
            }
            //Workaround to make dock resizable whilst docked        
    </script>
     
    </body>
    </html>
    Hope this helps.


    All the best,
    Petio Petkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Valery
    Valery avatar
    45 posts
    Member since:
    Nov 2008

    Posted 15 Mar 2010 Link to this post

    Hello Petio,

    Thanks incredibly for the supplied code - it worked for me like charm!

    Still I think your arguments make perfect sense for horizontal resizing but cannot be applied to that vertical resizing of docks. In general I think that horizontal and vertical axis should be treated differently. So I am going to submit this as a feature request as I think it is worth considering.

    Thank you again for your prompt and extremely helpful response!

    Best regards,
    Valery.
  5. Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 16 Mar 2010 Link to this post

    Hi Valery,

    This is a frequently requested feature by our clients and we decided to implement it for the next major release.
    This feature request was added to our PITS system and you can observe its status at http://www.telerik.com/support/pits.aspx

    Best regards,
    Petio Petkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Martijn van den Enk
    Martijn van den Enk avatar
    1 posts
    Member since:
    May 2010

    Posted 22 May 2010 Link to this post

    Hi Petio,

    Can you give me an status update about the vertical resizing? Because i can't find it in the PITS system.

    Thank you in advance.
    Martijn van den Enk



  7. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 25 May 2010 Link to this post

    Hi Martijn,

    You can follow the status on this issue on the following page: http://www.telerik.com/support/pits.aspx#/public/aspnet-ajax/1352.

    All the best,
    Pero
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017