Dock Resize Event on Client Side

3 posts, 0 answers
  1. Abdurrahman Battal
    Abdurrahman Battal avatar
    20 posts
    Member since:
    Nov 2008

    Posted 01 May 2009 Link to this post

    Hi,

    How can I capture resize event of the raddock on client side? I see that there are events for position changing, dragging etc; but I had no luck with resizing.

    This is an important issue for us and look forward to get your assistance.

    Thanks.
  2. Abdurrahman Battal
    Abdurrahman Battal avatar
    20 posts
    Member since:
    Nov 2008

    Posted 01 May 2009 Link to this post

    Found it. Seems like your online documentation is not upto date on this subject.

    Using the OnClientResizeStart and OnClientResizeEnd solved it for me.
  3. Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 01 May 2009 Link to this post

    Hi Abdurrahman Battal,

    The RadDock control has OnClientResizeStart and OnClientResizeEnd events, e.g.
    %@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
    <!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 id="Head1" runat="server">  
        <title></title>  
     
        <script type="text/javascript">  
            function DockResizeEnd(dock, args) {   
                ...do something  
            }  
            function DockResizeStart(dock, args) {   
                ...do something  
            }  
        </script> 
     
    </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">  
                    <telerik:RadDock ID="RadDock1" runat="server" OnClientResizeEnd="DockResizeEnd" OnClientResizeStart="DockResizeStart">  
                        <ContentTemplate> 
                        </ContentTemplate> 
                    </telerik:RadDock> 
                </telerik:RadDockZone> 
            </telerik:RadDockLayout> 
        </div> 
        </form> 
    </body> 
    </html> 
     


    Kind regards,
    Petio Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top