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

DockWindow on different threads?

2 Answers 48 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Carlitos
Top achievements
Rank 1
Carlitos asked on 29 Feb 2016, 12:04 AM

Hi, 

I just started using Telerik's awesome controls. I really like the RadDock. Everything that I have played with so far is great. However, I am wondering if it's possible to run different threads in different DockWindows? If so, can you post some code to get an idea on how to do it? This is the scenario I have right now: 

  1. I have a RadTreeView inside the ToolWindow. Basically displays a hierarchy of reports. 
  2. On the RadTreeView SelectedNodeChanged it will open a DocumentWindow that has different controls depending on the report being clicked.

So I am not sure what is possible:

  • Open each DocumentWindow in it's own thread? 
  • Or Standardize that each Document Window will have a button (maybe even place the button on a toolbar?) and when this button is clicked it will go to a different thread? 

What I am looking for is so that the user can build a long running report, while he can continue to work in a different DocumentWindow. I hope this makes sense. 

Thanks, 

Carlitos

 

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 29 Feb 2016, 03:47 PM
Hello Carlitos,

Thank you for writing.

Note that all UI controls are not thread safe controls in the whole Windows Forms platform (not just Telerik controls, but all controls out there). Here is an article on MSDN, describing how to make thread-safe Winforms UI application. This means that any control from the Telerik UI for WinForms suite is not thread safe as well and cannot be used outside the main UI thread. You should use an Invoke to update the controls in cross threading scenario.

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Carlitos
Top achievements
Rank 1
answered on 01 Mar 2016, 08:08 AM
Thanks Dess! Understood! 
Tags
Dock
Asked by
Carlitos
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Carlitos
Top achievements
Rank 1
Share this question
or