5 Answers, 1 is accepted
0
Accepted
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:
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.
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">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
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
>
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.
0

Valery
Top achievements
Rank 2
answered on 15 Mar 2010, 10:08 PM
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.
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.
0
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.
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.
0

Martijn van den Enk
Top achievements
Rank 1
answered on 22 May 2010, 10:31 AM
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
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
0
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.
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.