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

Creating an Instance when moving a dock between zone

3 Answers 63 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Roopesh
Top achievements
Rank 1
Roopesh asked on 17 Nov 2010, 09:16 AM
Team,

        We are developing a custom application for personalization approach in asp.net using rad controls. In this regard we are planning to use rad docks one of the list of web parts and the other for to have the original instance of the web part.

 

Introduction

 

We want to create an custom .Net application which persumes the user personalization with a web part gallery (custom) and a page where the users can add web parts from the gallery to the actual page. In this regard we want to use the telerik controls to support some of the functionalities. Following are the controls of telerik that are planning to use

 

RADDockLayout – To simulate web part zone

RADDock – To simulate the drag and drop feature between the zones

RADWindow – To simulate gallery opening from the page

RADRotator/RADMenu – Which will be control to render the web parts

 

Requirements

 

Page with 3 columns where user can add/drag and drop the web parts

When a user clicks on a button “add web part ” on the page

Flyout should come up showing the web part gallery

User should be able to drag and drop a web part from the gallery to the page

 

Problem Area

 

Drag and Drop – Create instance

 

Took two RadDock Layout one is having raddocks loaded using database as source. The other is empty. The docklayout that is initially loaded assume that is a kind of a gallery (represents an image for a webpart) But when a user drags a dock on to the second docklayout, the actual instance should remain as it is, but using some metadata information within the dock should create a new dock instance place it into the second docklayout

 

Disappearing window

           

            When a gallery is opened (on click of some button on the page) as fly out, after user finishes his interaction he will be clicking within the parent page some where so the fly out should disappear

Approach – Planning to use radwindow for this requirement

3 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 19 Nov 2010, 01:14 PM
Hi Roopesh,

We have a sample project that creates dockable objects on the client, by having the initial drag come from a predefined set (i.e. like a gallery) of RadDocks. I believe it will help you achieve the desired scenario. Please note, that the docks are created only on the client, and you should implement the server-side logic that will create the server RadDock objects.

All the best,
Pero
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Roopesh
Top achievements
Rank 1
answered on 29 Nov 2010, 08:15 AM
Telerik Admin,

This example I had look at it, where it was doing clone of the actual dock, but we don't want to do the clonning rather using the some metadata info within the original dock, we should be able to create a new dock with the some different metadata information.

The example should look like dragging a control from the toolbox to the designer within the visual studio

Regards
-Roopesh
0
Pero
Telerik team
answered on 01 Dec 2010, 10:14 AM
Hello Roopesh,

You could easily modify the example provided to display different content in the cloned RadDock. The get_contentContainer() method returns the element that holds the RadDock's content, and set different innerHTML, based on your metadata information.

I have attached another example that creates docks dynamically, but the initial drag comes from a RadTreeView control. This project creates the docks on the server.

Kind regards,
Pero
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Dock
Asked by
Roopesh
Top achievements
Rank 1
Answers by
Pero
Telerik team
Roopesh
Top achievements
Rank 1
Share this question
or