RadPane elements invisible when floating

4 posts, 1 answers
  1. Vidyadhar
    Vidyadhar avatar
    23 posts
    Member since:
    Oct 2011

    Posted 30 Jan 2012 Link to this post

    Hi,
    I have a situation here. In my application, I have multiple RadPanegroups with multiple RadPanes and all of them are pinned on UI by default when the app loads. But whenever I try to move the Pane(make it floatable) the contents of that pane just do not show up. And when I pin the pane back on the UI somewhere the elements show up. I have a RadMap in one of the Panes and a DataGrid in another. I have the same problem with both of them. When I make them float on the screen, the map and the grid disappears. They appear back when I dock them in the UI.
    Am really not sure whats causing this problem. Can anyone shed some light on this?

    Thanks,
    Vidyadhar.
  2. George
    Admin
    George avatar
    1332 posts

    Posted 02 Feb 2012 Link to this post

    Hello Vidyadhar,

    I tried to reproduce the problem, but to no avail. Please, refer to the attached sample and let me know if I miss something? If you give us more information about your scenario and/or a sample project that reproduces the problem, it would be of great to shed some light on it.


    Kind regards,
    George
    the Telerik team

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

  3. DevCraft banner
  4. Answer
    Doug
    Doug avatar
    19 posts
    Member since:
    Jun 2010

    Posted 05 Feb 2012 Link to this post

    Hi Vidyadhar,

    I am posting because I was having the same issue and found a resolution here:  Floating Pane Loses Bindings.

    Basically the workaround is to suscribe to the RadDocking PaneStateChanged event and set each panes datacontext there:

    private void radDocking_PaneStateChange(object sender, Telerik.Windows.RadRoutedEventArgs e)
            {
                foreach (RadPane pane in radDocking.Panes)
                {
                        if (pane.DataContext == null)
                            pane.DataContext = this.DataContext;
                }
            }


    This fixed the issue for me anyway. 

    Doug
    Doug
  5. Vidyadhar
    Vidyadhar avatar
    23 posts
    Member since:
    Oct 2011

    Posted 05 Feb 2012 Link to this post

    Hi Doug,
    Thank You so much. That worked for me too... Have been futzing around with the problem for a while. Felt very relieved once I saw it working :)

    Viddy.
Back to Top