Hi.
I am trying to combine 2 of your demo:
1) Dynamic dock
2) Custom commands
there is 2 problem:
1- after creating dynamicly a dock, the extra command button is not showed (only the 2 default one)
2 - If i fully reload the page, i can now see the custom button but the command is not trigger!
This is the code... Am i missing somethig?
if I am removing last dock.Commands.Add(d), everything works fine.
Can you help Me!
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.Commands.Add(new DockCloseCommand());
dock.Commands.Add(new DockExpandCollapseCommand());
DockCommand d = new DockCommand();
d.AutoPostBack = true;
d.Name = "Custom Command";
dock.Commands.Add(d);
return dock;
}
protected void RadDock_Command(object sender, DockCommandEventArgs e)
{
String a = string.Concat("You clicked: ", e.Command.Name);
}