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

CustomCommand visible only after move

1 Answer 34 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Rafael
Top achievements
Rank 1
Rafael asked on 13 Nov 2009, 08:25 PM
HI

I dont know if have a bug on radcontrol or on my code, but, i add a custom command to raddock and i can see the icon only after move this dock.

Can you help-me please ?

 
 Private Function CreateRadDockFromState(ByVal state As DockState) As RadDock 
            Dim dock As New RadDock() 
 
            dock.DockMode = DockMode.Docked 
            dock.ID = String.Format("RadDock{0}", state.UniqueName) 
            dock.ApplyState(state) 
 
            Dim botaoEditar As DockCommand = New DockCommand 
            botaoEditar.Name = "EDITAR" 
            botaoEditar.Text = "editar" 
            botaoEditar.AutoPostBack = True 
 
            AddHandler dock.Command, AddressOf dock_Command 
 
            dock.Commands.Add(botaoEditar) 
            dock.Commands.Add(New DockCloseCommand()) 
            dock.Commands.Add(New DockExpandCollapseCommand()) 
 
            Return dock 
        End Function 
 

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 18 Nov 2009, 01:57 PM
Hi Rafael,

I have created a test project based on the code you provided, but could not reproduce the problem that you have described. The dock command is visible at all times while running the page. Please see for yourself - I have attached the project to the thread.

In order to help you we will need your assistance. Can you please put together a sample project where this issue can be observed, open a new support ticket and send it back to us? Once we receive it we will do our best to provide a working solution.

Greetings,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Dock
Asked by
Rafael
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or