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

Auto hide ToolWindow

1 Answer 157 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 15 Jan 2015, 11:10 AM
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);
  }

1 Answer, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 16 Jan 2015, 03:34 PM
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.

 
Tags
ListView
Asked by
Michele
Top achievements
Rank 2
Answers by
Ralitsa
Telerik team
Share this question
or