unpin/pin RadPane losing content in new bits

10 posts, 0 answers
  1. Dave
    Dave avatar
    39 posts
    Member since:
    Jun 2008

    Posted 21 Mar 2011 Link to this post

    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
  2. Paul
    Paul avatar
    37 posts
    Member since:
    May 2009

    Posted 22 Mar 2011 Link to this post

    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
  3. DevCraft banner
  4. George
    Admin
    George avatar
    1332 posts

    Posted 24 Mar 2011 Link to this post

    Hello,

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

    Regards,
    George
    the Telerik team
  5. Dave
    Dave avatar
    39 posts
    Member since:
    Jun 2008

    Posted 28 Mar 2011 Link to this post

    This is a Prism app, and have not tried it outside of that.

    -Dave
  6. George
    Admin
    George avatar
    1332 posts

    Posted 30 Mar 2011 Link to this post

    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
  7. Dave
    Dave avatar
    39 posts
    Member since:
    Jun 2008

    Posted 01 Apr 2011 Link to this post

    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
  8. Jim Coleman
    Jim Coleman avatar
    2 posts
    Member since:
    May 2010

    Posted 01 Apr 2011 Link to this post

    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
  9. George
    Admin
    George avatar
    1332 posts

    Posted 06 Apr 2011 Link to this post

    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
  10. Nohinn
    Nohinn avatar
    167 posts
    Member since:
    Feb 2011

    Posted 06 Apr 2011 Link to this post

    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?
  11. George
    Admin
    George avatar
    1332 posts

    Posted 11 Apr 2011 Link to this post

    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
Back to Top
DevCraft banner