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

Client / Admin Facing Docks

6 Answers 97 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Neil
Top achievements
Rank 1
Neil asked on 16 Dec 2009, 06:38 PM
I am working on a project that requires an administrator to set the layout of custom user controls for use on a client facing portal.  I started using this example

When the end-user views the page there should be no dock functionality, so, can all the dock functionality such as drag/drop, layout styling and minimize/close be removed?  Or should I just parse the JSON that gets stored in the db and load the controls that way?

Thanks.

6 Answers, 1 is accepted

Sort by
0
Accepted
Gido Geek
Top achievements
Rank 2
answered on 17 Dec 2009, 10:53 AM
You can use a few different properties to achieve this:

RadDock dock = new RadDock(); 
dock.EnableDrag = false
dock.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.None; 
 

And you could style the RadDockTemplate.

I personally made portal where before registration users received a "default" layout where no moving of any kind was allowed nor any commands. After registration commands became available. So I think what you are trying to achieve is very well possible.

EDIT:

I took a look at your project and you could achieve this by modifying your code like this:

    private RadDock CreateRadDockFromState(DockState state) 
    { 
        RadDock dock = new RadDock(); 
        dock.DockMode = DockMode.Docked; 
        dock.ID = string.Format("RadDock{0}", state.UniqueName); 
        dock.ApplyState(state); 
        dock.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.None; 
        dock.EnableDrag = false
        dock.TitlebarTemplate = new YouCustomTitleBarTemplate(): 
 
        return dock; 
    } 

0
Alex
Top achievements
Rank 1
answered on 17 Dec 2009, 02:30 PM
Thanks that worked great :-)
0
Gido Geek
Top achievements
Rank 2
answered on 17 Dec 2009, 02:59 PM
You're welcome, could you mark my answer as the solution ?

0
Alex
Top achievements
Rank 1
answered on 17 Dec 2009, 03:04 PM
Sure, I don't see how to do the though.
0
Gido Geek
Top achievements
Rank 2
answered on 18 Dec 2009, 08:43 AM
Hey Neil,

It should look something like this:

Thx in advance.
0
Alex
Top achievements
Rank 1
answered on 18 Dec 2009, 04:27 PM
I don't have that option.


Tags
Dock
Asked by
Neil
Top achievements
Rank 1
Answers by
Gido Geek
Top achievements
Rank 2
Alex
Top achievements
Rank 1
Share this question
or