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

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

2 Answers 49 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Roxane
Top achievements
Rank 1
Roxane asked on 20 May 2015, 09:07 AM

Hello,

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,
};
 
dockZoneControl.Controls.Add(radDock);

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

 

I hope someone can help me.

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 22 May 2015, 03:27 PM
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: http://www.telerik.com/forums/raddock-bug-with-clientidmode-static

Regards,
Slav
Telerik
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
0
Roxane
Top achievements
Rank 1
answered on 27 May 2015, 02:03 PM
Thank  you, that works!
Tags
Dock
Asked by
Roxane
Top achievements
Rank 1
Answers by
Slav
Telerik team
Roxane
Top achievements
Rank 1
Share this question
or