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

unpin/pin RadPane losing content in new bits

9 Answers 149 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 22 Mar 2011, 12:51 AM
I hope this is just an aberration on my part...

But is anyone else noticing this?

I've got code running from the Q3 2010 SP1 version on a production servier... I can unpin and repin a RadPane and the content stays in place.

I updated to Q1 2011 Friday afternoon, and all day have been working on my IsPinned binding, which I finally got working, by the way, but... when I unpin and repin the Pane, I lose all my content... It's as if the view is totally removed because the menu downarrow throws an error, and the pin is grayed.

I saved off today's work, and pulled the existing code from TFS so that the only change was from Q3 2010 SP1 to Q1 2011, and the problem is still there.

Last week I could unpin/repin without issue but binding didn't work... now I can bind but can't unpin/pin...

to be honest, I had a hacky solution that would get me around the binding, but I need the pinning to work.

As I said, anyone else seeing this?

-Dave

9 Answers, 1 is accepted

Sort by
0
Paul
Top achievements
Rank 1
answered on 22 Mar 2011, 08:02 PM
Dave,

Yes.  Went to latest Telerik, v2011.1.301.1040, can take a radPane and unpin it to the side, then pin it and it loses the content of the radPane.  The radPane content is populated from a Prism module view.

-Paul
0
George
Telerik team
answered on 24 Mar 2011, 05:34 PM
Hello,

 
Is this happening only with PRISM or without it? We need some more information to test the scenario.

Regards,
George
the Telerik team
0
Dave
Top achievements
Rank 1
answered on 28 Mar 2011, 06:24 PM
This is a Prism app, and have not tried it outside of that.

-Dave
0
George
Telerik team
answered on 30 Mar 2011, 09:32 AM
Hello Dave,

 
I tried to reproduce the problem but to no avail. Attached you can find a sample with RadDocking control and PRISM & MEF. 

Could you please describe what is your scenario so we can pinpoint the problem? I am glad to assist you further.

Regards,
George
the Telerik team
0
Dave
Top achievements
Rank 1
answered on 01 Apr 2011, 05:44 PM
I should have said we're using Unity, but I don't see how that could matter.

So that 3rd-parties can build AppModules, I've converted all our AppModules to be UserControls. The AppModule itself may contain Telerik controls, but out of the box, it's no longer a demand.

I do this by wrapping the UserControl in a RadPane, then wrap that in a RadPaneGroup which is added to a Prism Region that is a RadSlitContainer.

The modules that are RadPanes come up just fine, fully functional in all ways. If I unpin, it slides off to the left as planned, and I can 'fly' it back out and use it by rolling the mouse over it.

If I try to repin it however, the content disappears, the pin gets grayed out, and if I push the menu button I get a crash because obviously that Pane is gone.

I just tried starting them out unpinned and that seems to work as well, I can even pin them once or twice, but if I play with it back and forth a couple times it will exhibit the same effect.

-Dave
0
Jim Coleman
Top achievements
Rank 1
answered on 01 Apr 2011, 09:59 PM
This may not be a prism issue.  I am experiencing similar problems since I updated to the Q1 2011 release.

In my application I programattically add a RadPane to an empty RadPaneGroup.

radpanegroup1.Items.Add(radpane1);

The UI displays the contents of radpane1 successfully.  After another user action my code clears out the items in the RadPaneGroup and readds the RadPane.

radpanegroup1.Items.Clear();
radpanegroup1.Items.Add(radpane1);

The UI no longer displays any content in the RadPaneGroup.

This code works correctly in the Q3 2010 release.  When I change my Telerik references back to the Q3 2011 release, it still works.  I can then change the references to Q1 2011 and it fails every time.

-Jim
0
George
Telerik team
answered on 06 Apr 2011, 12:46 PM
Hello,

 
That's very strange behavior of RadDocking control. I made a sample project with 2 buttons and RadDocking control and tried to reproduce the problem, but to no avail. Attached you can find the sample.

We will greatly appreciate a project that reproduces the issue. It will definitely help us in further pinpointing and resolving the problem.

Best wishes,
George
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
0
Nohinn
Top achievements
Rank 1
answered on 06 Apr 2011, 01:38 PM
I'm trying to use Mef (and prism if necessary) for my application to load for example 2 times a xap, so for example using the functionality of raddocumentpanes I can let the user copy info from one of the xap instances to the other and viceversa.
I can load somehow each time the xap, but if I try to switch from one pane to the other or drag one of the panes then I get a "Element is the child of another element" exception.
There's any possible approach to do something like this?
0
George
Telerik team
answered on 11 Apr 2011, 03:45 PM
Hi Eduardo,

 
This is a general exception for Silverlight when an UIElement has more than one parent element. We cannot say what is the cause for this exception without any source code. If you could send us a running project that reproduces the problem, it would be great. We could look into the sample.

I am glad to assist you further.

Greetings,
George
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
Tags
Docking
Asked by
Dave
Top achievements
Rank 1
Answers by
Paul
Top achievements
Rank 1
George
Telerik team
Dave
Top achievements
Rank 1
Jim Coleman
Top achievements
Rank 1
Nohinn
Top achievements
Rank 1
Share this question
or