CustomCommand visible only after move

2 posts, 0 answers
  1. Rafael
    Rafael  avatar
    13 posts
    Member since:
    Jan 2009

    Posted 13 Nov 2009 Link to this post

    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 
     

  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 18 Nov 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top