Client / Admin Facing Docks

7 posts, 1 answers
  1. Neil
    Neil avatar
    50 posts
    Member since:
    Mar 2009

    Posted 16 Dec 2009 Link to this post

    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.
  2. Answer
    Gido Geek
    Gido Geek avatar
    28 posts
    Member since:
    Nov 2009

    Posted 17 Dec 2009 Link to this post

    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; 
        } 

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alex
    Alex avatar
    4 posts
    Member since:
    Mar 2009

    Posted 17 Dec 2009 Link to this post

    Thanks that worked great :-)
  5. Gido Geek
    Gido Geek avatar
    28 posts
    Member since:
    Nov 2009

    Posted 17 Dec 2009 Link to this post

    You're welcome, could you mark my answer as the solution ?

  6. Alex
    Alex avatar
    4 posts
    Member since:
    Mar 2009

    Posted 17 Dec 2009 Link to this post

    Sure, I don't see how to do the though.
  7. Gido Geek
    Gido Geek avatar
    28 posts
    Member since:
    Nov 2009

    Posted 18 Dec 2009 Link to this post

    Hey Neil,

    It should look something like this:

    Thx in advance.
  8. Alex
    Alex avatar
    4 posts
    Member since:
    Mar 2009

    Posted 18 Dec 2009 Link to this post

    I don't have that option.


Back to Top
UI for ASP.NET Ajax is Ready for VS 2017