RadPane content problem

8 posts, 0 answers
  1. Paul
    Paul avatar
    24 posts
    Member since:
    Jul 2010

    Posted 02 Aug 2011 Link to this post

    Hi,

    I have encountered a problem with RadPane content.

    I load my app. I then manually (using code) create dock groups and Panes. I then load the content into each of the panes from another user control. Everything works just fine... All the panes are as expected & the content s visible.

    But...

    If I then apply layout loading and saving I lose the content...
    I added events so that once the layout and docking changes by a user action, I save the layout to a silverlight file store as xml. When the application loads I then load my panels as before (above), then apply a layout from the saved xml (the user's last layout arrangement) and the content is lost.

    ALSO - I tried loading the content AFTER the layout is applied...

    If I load my RadPanes, then adjust the layout, then load the content after the layout, the content still does not appear. The content is in the control, as I can see it in my debugger, but visually the RadPane does not show the content.

    What must I do to cause the content to appear. Do I need to update some layout somewhere ?..

    Thanks...
  2. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 03 Aug 2011 Link to this post

    Hello Paul,

    RadDocking cannot save the content of the panes itself. If you want to save it you will have to use SerializationTag property of the groups and panes. Here you can find an example how to save and load the content of your panes.

    Hope this helps.

    Regards,
    Ivo
    the Telerik team

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

  3. DevCraft banner
  4. Paul
    Paul avatar
    24 posts
    Member since:
    Jul 2010

    Posted 03 Aug 2011 Link to this post

    Hi,

    Thanks for the reply... but you didn't appreciate what I was doing.

    I'm happy to "load" the layout for my panels, BEFORE I add the content to them.

    • I will load my panels...
    • Then load the layout for them (as per the user's last saved layout)
    • Then Finally - clear the content for each panel & re-load a user control.

    I'm not expecting the serialisation process to save the content - jut the position & layout of the panels in the docking arrangement.
    I expect to do all of the content loading manually AFTER the layout has been re-loaded.

    The issues is that even after I load the content for each panel AFTER THE LAYOUT IS APPLIED, the content is not visible.

    Thanks.
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 04 Aug 2011 Link to this post

    Hi Paul,

    We're sorry for the misunderstanding.

    Could you please send us some code which shows how exactly you load the content? We need this information in order to test the scenario. Also which version of the controls you're using? Thanks in advance

    Kind regards,
    Yana
    the Telerik team

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

  6. Mago
    Mago avatar
    7 posts
    Member since:
    Jun 2012

    Posted 17 Aug 2011 Link to this post

    Hi Paul,

    I had this problem too and I found out that if you set the IsSelected value of the RadPane to "true" the content will be displayed.
    Hope this works for you.
  7. Mago
    Mago avatar
    7 posts
    Member since:
    Jun 2012

    Posted 17 Aug 2011 Link to this post

    I also have a problem with RadDocking and it's Save/Load Layout feature.
    I apologies in advance if there is another thread on this topic, but I couldn't seem to find it.

    I have an application with static and dynamic RadPanes. All the RadPanes can be minimized (closed and reopened, I'm using the IsHidden property to do this). My problem is with a RadPane that is dynamically created and added as a child of a static created RadSplitContainer. If this RadPane is minimized and then the layout is saved, after loading the layout and making the RadPane visible it is no longer dockable (floating only).

    After I looked over the generated XML I saw that this RadPane had the IsDockable property set to true but it is the child of an autogenerated RadSplitContainer which isn't dockable.

    Hope you can help.
  8. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 22 Aug 2011 Link to this post

    Hello Mago,

    I tried to reproduce the issue, but to no avail. Attached I am sending you the project I used. Could you please modify it in order to reproduce the issue and send it back to us. In that way we will be able to track down the source of the problem and provide a solution in a timely manner.

    Looking forward to your reply.

    Best wishes,
    Konstantina
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  9. Mago
    Mago avatar
    7 posts
    Member since:
    Jun 2012

    Posted 23 Aug 2011 Link to this post

    Ok thank you! As soon as I have the time I will try to send you a sample.
Back to Top
DevCraft banner