Auto hide ToolWindow

2 posts, 0 answers
  1. Paolo
    Paolo avatar
    423 posts
    Member since:
    Jun 2009

    Posted 15 Jan 2015 Link to this post

    Hello,
    I'm adding a Toolwindow witha aRadlistview inside to a dockmanager, I wish that at load the toolwindow is as the screen I've attached

    the code that creates the grid is 

    private void AttachMessageListView(string name)
      {
          logListView = new RadListView();
     
          logListView.Columns.Add("Info");
          logListView.Columns.Add("Timestamp");
          logListView.Dock = DockStyle.Fill;
          logListView.ViewType = ListViewType.DetailsView;
     
          ToolWindow treeWindow = new ToolWindow();
          treeWindow.Text = name;
          treeWindow.Controls.Add(logListView);
           
        
          //radDock1.DockWindow(treeWindow, DockPosition.Bottom);
          radDock1.DockControl(treeWindow, DockPosition.Bottom);
          VisualLogManager.SetRadListView(logListView);
      }
  2. Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 16 Jan 2015 Link to this post

    Hi Paolo,

    Thank you for contacting us. 

    You can call the AutoHide method or change the DockState property to AutoHideHere is the code snippet: 
    ToolWindow treeWindow = new ToolWindow();
    treeWindow.Text = name;       
    treeWindow.Controls.Add(logListView);
    radDock1.DockWindow(treeWindow, DockPosition.Bottom);
    treeWindow.DockState = DockState.AutoHide;
    //or
    //treeWindow.AutoHide();

    You can refer to the RadDock Properties and Methods and ToolWindow and DocumentWindow Properties and Methods articles for more information which properties and methods you can use in your application. 
     
    Hope this will help you. Let me know if you have any another questions.

    Regards,
    Ralitsa
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top