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

Drag and drop

2 Answers 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 25 Aug 2015, 09:28 PM

is possible to re size RadDockZone to either 320 x 270px or 640 x 270px?

Then, allow the user to add new RadDockZones dynamically when an "add zone" button is clicked?

 

 

2 Answers, 1 is accepted

Sort by
0
Victor
Top achievements
Rank 1
answered on 25 Aug 2015, 09:30 PM
The user should be able to re size the RadDockZone. In the UI. Is it possible
0
Ianko
Telerik team
answered on 28 Aug 2015, 09:56 AM
Hello Victor,

The DockZone controls can be added programmatically via server-side approach. You can refer to this demo (http://demos.telerik.com/aspnet-ajax/dock/examples/dynamicdocks/defaultcs.aspx), where Dock controls are being added dynamically, but use similar logic fro DockZone ones.

To add specific dimensions to the DockZone, you can use teh Width and Height properties:
<telerik:RadDockZone runat="server" ID="DockZone1" Width="640px" Height="270px">

As for resizing, you can simply use CSS rule to create resizable dock zones:
.RadDockZone {
    resize:both;
}

However, the control is not designed to be resizable, and thus, the size is not persisted to the server. By that, after post back the initial Width and Height will be restored.

Regards,
Ianko
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Victor
Top achievements
Rank 1
Answers by
Victor
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or