RadDocking with Prism framework not working

6 posts, 0 answers
  1. Arpit
    Arpit avatar
    10 posts
    Member since:
    Jun 2009

    Posted 11 Mar 2011 Link to this post


    I am facing the foll problems :

    PROBLEM – 1


    Scenario :  

            Issue Regarding Telerik Docking > RadDocking.DocumentHost  


           Here we want to activate view from specific region.  Please go through the following steps -



    1. First I register view ModuleAMainPageView with MyMainRegion by using following line :


    regionManager.RegisterViewWithRegion("MyMainRegion", () => unityContainer.Resolve<ModuleAMainPageView>());


    2.    Then I have added two views in same page as ModuleAMainPageView contain TabControl.


    regionManager.RegisterViewWithRegion("MainTabRegion", () => unityContainer.Resolve<TabAView>());

    regionManager.RegisterViewWithRegion("MainTabRegion", () => unityContainer.Resolve<TabBView>());


    3.   But after this we have requirement that we have to activate ModuleAMainPageView View, so I have write code as :


    string moduleAMainPageView = "ModuleA.Views.ModuleAMainPageView";

    ActivateView(moduleAMainPageView, regionManager.Regions["MyMainRegion"])


    4.   Where ActivateView() is function with following code


    public void ActivateView(string viewName, IRegion currentRegion)


                foreach (var v in currentRegion.Views)


                    var viewType = v.GetType();

                    if (viewType.FullName != viewName) continue;








    5.   Please have look at code for region.

                <telerik:RadSplitContainer x:Name="MainPageContainer"  >
                    <telerik:RadPaneGroup x:Name="Group5">
                        <telerik:RadPane x:Name="EverestMainRegion"   FontSize="10.667" regions:RegionManager.RegionName="MyMainRegion" ScrollViewer.HorizontalScrollBarVisibility="Auto" >                        



    6.   At point number 5 ,if we comment the code for  <telerik:RadDocking.DocumentHost>, the above code work fine but If we replace same code as point 5 then it gives me following error at point number 3.

    ERROR :  “The region manager does not contain the MyMainRegion region.”


    • My Question Is : Is there is any other alternate way or another code line which will replace code at point number 3.



    PROBLEM – 2


    Scenario :  

       As we are using Prsim Approach,  We have defined a Shell  which has a region named ( LoginScreenRegion ). This Region accepts LoginPageView initially and after hitting login button, it accepts LandingPageView.  

       This landingPageView has Telerik Docking inside it.    


         After cliking login Button – the LandingPageView comes, and then after unpin of Right Panes ( Assignment , Message Notification) , the Whole UI gets truncated to the center of the screen. 

        ( Please see the attached png Image – Collapsed,png)

      This Problem is coming whenever we are using Prism approach. However it works fine if we do it through normal traditional approach ( without prism) .

    I have also attached images for my solution Explore, shell, loginPageview 

  2. George
    George avatar
    1332 posts

    Posted 17 Mar 2011 Link to this post

    Hi Arpit, 

    Straight to your questions:
    1. We are aware of this problem with DocumentHost and PRISM. To work around it, I would suggest you to use the RegionManager.SetRegionManager method to register the pane group in the DocumentHost as region.
    2. Could you please give us more information about this problem? Also, if you send us a sample project that reproduces the problem it would be very helpful to pinpoint the problem.

    the Telerik team
  3. David Gerding
    David Gerding avatar
    44 posts
    Member since:
    Sep 2005

    Posted 06 May 2011 Link to this post

    Any progress with this? I tried adding RadDocking to a Prism region and had a bunch of unusual problems crop up.  Is there any other recommended practice beyond the region registration referenced above?

    Dave G

  4. George
    George avatar
    1332 posts

    Posted 11 May 2011 Link to this post

    Hello David, 

    There are two approaches to use the RadDocking control with PRISM:
    1. Use the RadPaneGroups as regions. In this way you could use the RadPanes as views and plug them into the RadPaneGroup region (RadPaneGroup is an ItemsControl). 
    2. Use the RadPanes as regions. In this way the region is a content control and you could register another usercontrols for the regions (RadPane is a ContentControl).

    Could you please give us more information about the issues with the RadDocking control and PRISM? I am glad to assist you further.

    All the best,
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  5. Shane
    Shane avatar
    4 posts
    Member since:
    May 2011

    Posted 27 Jul 2011 Link to this post

      I am alittle new to the Docking and Prism. Do you have an example with the Q2 2011 and Prism v4 that demonstrates what you talked about in this article.

    Your help is greatly appreciated.
  6. George
    George avatar
    1332 posts

    Posted 02 Aug 2011 Link to this post

    Hello Shane,

    Please, refer to the following forum thread where you can find additional information about RadDocking & PRISM 4 framework - http://www.telerik.com/community/forums/silverlight/docking/prism-4-and-telerik-raddocking.aspx

    Hope this helps.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top