How do I add Commands to dynamic created DockZones and Docks?

3 posts, 0 answers
  1. Roxane
    Roxane avatar
    11 posts
    Member since:
    Nov 2011

    Posted 20 May 2015 Link to this post


    we generated DockZones and Docks dynamically in the Code Behind (Page_Init):

    RadDock radDock = new RadDock()
        ID = "dock_" + dock.Id,
        ClientIDMode = ClientIDMode.Static,
        UniqueName = dock.Id,
        DockMode = DockMode.Docked,
        BorderWidth = new Unit(0),
        EnableRoundedCorners = true,
        DefaultCommands = DefaultCommands.ExpandCollapse,
        CommandsAutoPostBack = true,

    Our Problem is, that nothing happend by clicking the Collapse-Button.


    I hope someone can help me.





  2. Slav
    Slav avatar
    1351 posts

    Posted 22 May 2015 Link to this post

    Hi Roxane,

    Most probably the issue stems from setting the ClientIDMode to Static, which is not supported by RadDock and I would not recommend using it with the rest of the Telerik controls as well. You can find more information about this scenario in the following forum thread:

    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
  3. DevCraft R3 2016 release webinar banner
  4. Roxane
    Roxane avatar
    11 posts
    Member since:
    Nov 2011

    Posted 27 May 2015 in reply to Slav Link to this post

    Thank  you, that works!
Back to Top