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

DockHandle Type Changing (Client Side)

4 Answers 70 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Kurt
Top achievements
Rank 1
Kurt asked on 30 Mar 2009, 05:53 AM
Hi... another Dock question.

I'm trying to change the dockhandle type from "Grip" or "None" to "TitleBar" when undocking a Dock.  For the application I'm building, it is desireable to have an image representing what the dock will become when dragged onto the main stage.  Once on the stage I'd like to set it to look like a standard floating Dock.

I looked through the client API, but can't seem to find a way to update the dockhandle on the Client Side.  Any help would be great!

-Kurt

4 Answers, 1 is accepted

Sort by
0
Petio Petkov
Telerik team
answered on 30 Mar 2009, 12:42 PM
Hi Kurt,

You could try to use dock.set_handle(element) client-side method. A simple example which illustrates this method is available here:
http://demos.telerik.com/aspnet-ajax/dock/examples/setdraghandleclientside/defaultcs.aspx


All the best,
Petio Petkov
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Kurt
Top achievements
Rank 1
answered on 30 Mar 2009, 02:37 PM
Petio,

Correct me if I'm wrong, but doesn't set_handle just define what is the draggable part of the dock?  What I'm trying to do is not only define what the draggable part of the dock is, but also modify the way the dock looks by changing the DockHandle property from "None" to "Title Bar" on the client side.

Thanks,
Kurt
0
Petio Petkov
Telerik team
answered on 02 Apr 2009, 03:22 PM
Hello Kurt,

The RadDock control is with server-side rendering and there is not a way to change it's look by changing dock handle on the client via JavaScript(e.g. None to TitleBar or Grip to TitleBar).
My suggestion is to add two different divs into the RadDock's content and remove the titlebar. After that you should change their visibility  and set the visible div as a handle via JavaScript(with set_handle).

Sincerely yours,
Petio Petkov
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Kurt
Top achievements
Rank 1
answered on 03 Apr 2009, 06:13 PM
Petio,

Thanks for the response.  I wish I would have thought of that.  Instead I'm working with a jQuery FishEye menu that dynamically adds the desired dock to the stage based upon what menu item is clicked.  Works really well.  I have another app I'm building that I can put your suggestion to use.  Thanks!  I love Client Side <--> Server Side communication.  Once I'm done with this app in web forms, I'm going to rebuild it in SilverLight 3.0 to test the "outside of browser" experience.  =)

-Kurt
Tags
Dock
Asked by
Kurt
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
Kurt
Top achievements
Rank 1
Share this question
or