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

Dock Resize Event on Client Side

2 Answers 48 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Abdurrahman Battal
Top achievements
Rank 1
Abdurrahman Battal asked on 01 May 2009, 12:46 PM
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 Answers, 1 is accepted

Sort by
0
Abdurrahman Battal
Top achievements
Rank 1
answered on 01 May 2009, 12:50 PM
Found it. Seems like your online documentation is not upto date on this subject.

Using the OnClientResizeStart and OnClientResizeEnd solved it for me.
0
Petio Petkov
Telerik team
answered on 01 May 2009, 03:00 PM
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.
Tags
Dock
Asked by
Abdurrahman Battal
Top achievements
Rank 1
Answers by
Abdurrahman Battal
Top achievements
Rank 1
Petio Petkov
Telerik team
Share this question
or