DockWindow on different threads?

3 posts, 0 answers
  1. Carlitos
    Carlitos avatar
    18 posts
    Member since:
    Nov 2015

    Posted 28 Feb 2016 Link to this post


    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. 




  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    4168 posts

    Posted 29 Feb 2016 Link to this post

    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.
    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
  3. Carlitos
    Carlitos avatar
    18 posts
    Member since:
    Nov 2015

    Posted 01 Mar 2016 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Thanks Dess! Understood! 
Back to Top