Facing a issue with RadDocking +Prism 4.1

15 posts, 1 answers
  1. Padman
    Padman avatar
    19 posts
    Member since:
    Nov 2010

    Posted 25 Nov 2013 Link to this post

    Hello, Telerik Team 
    I am facing a issue with RadDocking +Prism 4.1.
    I have telerik control(Q3 2013, version:2013.3.1016.1050) and prism 4.1.0.0 and it's hierarchy in MainView.xmal are below 
      1)RadDocking>RadSplitContainer>RadPaneGroup>RadPane>RadTreeView => For select view from treeView
      2)RadDocking>RadDocking.DocumentHost>RadPaneGroup with prism:RegionManager.RegionNam=> For Dynamic view load.

    Control(RadPaneGroup with RegionManager.RegionNam) inside RadDocking.DocumentHost doesn't load/refresh.
    Please check attachment for more details for my actual requirements using RadDocking  + Prism 4.1. 
    Please reply as soon as possible.

    Regards,
    Padman
  2. George
    Admin
    George avatar
    1332 posts

    Posted 27 Nov 2013 Link to this post

    Hi Padman,

    Placing RadPaneGroup directly in the DocumentHost is not a supported scenario in the RadDocking control. The RadPaneGroup needs to be placed in a RadSplitContainer:
    <telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup>
    ....
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
    </telerik:RadDocking.DocumentHost>

    Please, give it a try and let me know if this helps.

    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Padman
    Padman avatar
    19 posts
    Member since:
    Nov 2010

    Posted 02 Dec 2013 Link to this post

    Hello, George 

    I checked your answer and tried the same code however It was not worked for me. I have not get any build error or run time error and It could not load expected view in RegionManager.RegionName area.
    I think you have found a issue with RadDocking and Prism together doen't work.
    Please check the issue and Let me know about same.
    Regards, Padman
  5. George
    Admin
    George avatar
    1332 posts

    Posted 04 Dec 2013 Link to this post

    Hello Padman,

    With the upcoming Q3 SP1 release we will introduce a brand new feature for RadDocking control which covers the MVVM and PRISM scenarios. Moreover, there will be soon a blog post about implementing RadDocking with PRISM which covers the following:
     - MEF
     - MVVM
     - CustomRegionAdapter
     - CustomRegionBehavior which helps Activation implementation
     - Activation
     - Custom Event aggregators
     - Predefined docking layout at start up
     - Save and Load docking layout on application start up and exit

    In the example adding a new panes in the DocumentHost using PRISM at runtime is covered as well. Hope this will shed some light on the problem.

    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Padman
    Padman avatar
    19 posts
    Member since:
    Nov 2010

    Posted 04 Dec 2013 Link to this post

    Hi George,

    Thanks for the update and feedback. Can you tell us when the Silverlight Q3 SP1 update is expected to be released?

    Regards,
    Padman
  7. George
    Admin
    George avatar
    1332 posts

    Posted 06 Dec 2013 Link to this post

    Hello Padman,

    The Q3 SP1 release is already available for download - http://blogs.telerik.com/blogs/13-12-05/radcontrols-for-wpf-and-silverlight-q2-2013-sp1-is-now-available.

    The blog pots for the new RadDocking features will be available next week. Meanwhile, you could refer to our documentation about the new PanesSource property - http://www.telerik.com/help/silverlight/raddocking-features-panes-panesource.html.

    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  8. Padman
    Padman avatar
    19 posts
    Member since:
    Nov 2010

    Posted 24 Dec 2013 Link to this post

    Hello George,

    Thanks for your reply. We have still issue with our current project.

    I have create the sample project so you can see the issue with docking panel.

    you can download the source code : Silverlight Telerik Docking.zip

    Please let me know your feedback as soon as possible. it is really urgent for us.

    Thanks,
    Padman
  9. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 27 Dec 2013 Link to this post

    Hello Padman,

    I have checked the project and it seems that you're not using the new RadDocking functionality George suggested (check it here). Note that we've implemented the DockingPanesFactory mechanism and PanesSource property exactly for such kind of scenarios. Also I would suggest that you take a look at the following blog post which explains in details how to use RadDocking control with PRISM:
    http://blogs.telerik.com/blogs/13-12-11/using-raddocking-with-prism-in-wpf-silverlight

    Hope this helps.

    Regards,
    Yana
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  10. Padman
    Padman avatar
    19 posts
    Member since:
    Nov 2010

    Posted 30 Dec 2013 Link to this post

    Hello yana,

    Thanks for you reply.

    As per your suggest code i think we need to change all over region manager pages from user control to raddocumentpanel.

    Because we have many modules already developed and more than 200+ Pages have developed which we need to change.

    So it is better if you can update our attached code which is working with RadDocking + PRISM then it will be great for us.

    Awaiting for your positive reply,

    Thanks,
    Padman

  11. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 02 Jan 2014 Link to this post

    Hi Padman,

    Thank you for sending the source code. I've taken a look at it and I noticed that after running it an exception is thrown when you try to load LocationModule or EmployeeModule. Is this the problem you have faced or you have been describing another issue? If this is the problem I can confirm that it is not related to RadDocking control - you can remove it and the same issue will still exist. It looks like the RegionManager is unable to load the View2 and View3 files, maybe it is related to the fact that both of them are not in the main project (TeleikDocing). I've searched about similar issues over the net and there are various of suggestions. I'm not sure which one could do the job for you as I do not know all the specifications of your environment and business logic. You can also ask the Prism community for help.

    Hope this helps.

    Regards,
    Rosen Vladimirov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  12. Padman
    Padman avatar
    19 posts
    Member since:
    Nov 2010

    Posted 02 Jan 2014 Link to this post

    Hi Rosen,

    Thank you for your feedback. As you facing issue with load LocationModule or EmployeeModule. this is the problem you have faced Only with RadDocing + prism. If you want to check Please replace shell.xaml file which is attached. There are two option in this file A) Option 1- With-out Docking  B)Option 2- With Docking . Please check in shell.xaml. Option A) is working fine while in B) is not working.

    you can download the latest source code : Silverlight Telerik Docking.zip

    Hope this helps to identify my issue.

    Regards,
    Padman
  13. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 06 Jan 2014 Link to this post

    Hi Padman,

    I've tried to download your source code, but it looks like it has been removed from the location. Also I cannot see any shell.xaml as attachment of your last mail. Could you send us the mentioned files, so we can investigate the issue further?

    I'm looking forward to hearing from you.

    Regards,
    Rosen Vladimirov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  14. Padman
    Padman avatar
    19 posts
    Member since:
    Nov 2010

    Posted 07 Jan 2014 Link to this post

    Hi Rosen,

    I can't get which issue are you facing however I have create new a simple demo.

    Go To Shell.xaml in TelerikDocing directory
    There are two options for with/without TelerikDocking in shell.xaml  
         A) Option 1- With-out Docking (currently working)  
        B) Option 2- With Docking. (If you want to set ,you have to  un comment code segment B) and comment code segment A). )

    Demo application working well with option  A) Option 1- With-out Docking  .
    When  you set option  B) Option 2- With Docking.

    Hope this will help to identify the issue.

    Same for all the download in case if you unable to access:
    Download : Telerik Docking Zip
    -------- OR ----------------------------
    Download :   TelerikDocking2.zip  (This URL is valid until Friday, January 10, 2014)

    Note : Both the download files are same but in different location.

    Let me know if you have any questions.

    Regards,
    Padman
  15. Answer
    Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 08 Jan 2014 Link to this post

    Hi Padman,

    Thank you very much for the project. We've taken a deep look at it and it turned out that the issue is reproduced only when the view is loaded in the DocumentHost. We've debugged it further and it turned out that there's no Regions in the RegionManager in this situation. That's why we've added the code below in NavigateToSelectedItem:
    If Not regionManager.Regions.ContainsRegionWithName(RegionNames.MainContentRegion) Then
        mainContent.SetValue(Microsoft.Practices.Prism.Regions.RegionManager.RegionManagerProperty, Me.regionManager)
    End If
    where mainContent is the x:Name of the ContentControl.

    I've attached your modified solution for your assurance. Feel free to contact us in case you still have any problems or concerns.

    Regards,
    Rosen Vladimirov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  16. Padman
    Padman avatar
    19 posts
    Member since:
    Nov 2010

    Posted 09 Jan 2014 Link to this post

    Hello Rosen,

     it is working now. thank you so much



    Thanks,
    Padman
Back to Top
DevCraft banner