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

Facing a issue with RadDocking +Prism 4.1

14 Answers 61 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Padman
Top achievements
Rank 1
Padman asked on 25 Nov 2013, 07:13 AM
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

14 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 27 Nov 2013, 04:08 PM
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 >>
0
Padman
Top achievements
Rank 1
answered on 02 Dec 2013, 10:03 AM
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
0
George
Telerik team
answered on 04 Dec 2013, 02:43 PM
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 >>
0
Padman
Top achievements
Rank 1
answered on 05 Dec 2013, 05:50 AM
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
0
George
Telerik team
answered on 06 Dec 2013, 02:34 PM
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 >>
0
Padman
Top achievements
Rank 1
answered on 24 Dec 2013, 10:17 AM
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
0
Yana
Telerik team
answered on 27 Dec 2013, 10:33 AM
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 >>
0
Padman
Top achievements
Rank 1
answered on 30 Dec 2013, 09:56 AM
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

0
Rosen Vladimirov
Telerik team
answered on 02 Jan 2014, 12:10 PM
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 >>
0
Padman
Top achievements
Rank 1
answered on 03 Jan 2014, 05:10 AM
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
0
Rosen Vladimirov
Telerik team
answered on 06 Jan 2014, 12:59 PM
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 >>
0
Padman
Top achievements
Rank 1
answered on 07 Jan 2014, 06:17 AM
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
0
Accepted
Rosen Vladimirov
Telerik team
answered on 08 Jan 2014, 10:03 AM
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 >>
0
Padman
Top achievements
Rank 1
answered on 09 Jan 2014, 09:50 AM
Hello Rosen,

 it is working now. thank you so much



Thanks,
Padman
Tags
Docking
Asked by
Padman
Top achievements
Rank 1
Answers by
George
Telerik team
Padman
Top achievements
Rank 1
Yana
Telerik team
Rosen Vladimirov
Telerik team
Share this question
or