Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Docking > RadPane elements invisible when floating

Answered RadPane elements invisible when floating

Feed from this thread
  • Vidyadhar avatar

    Posted on Jan 30, 2012 (permalink)

    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.

    Reply

  • George George admin's avatar

    Posted on Feb 2, 2012 (permalink)

    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 >>

    Attached files

    Reply

  • Answer Doug avatar

    Posted on Feb 5, 2012 (permalink)

    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

    Reply

  • Vidyadhar avatar

    Posted on Feb 5, 2012 (permalink)

    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Docking > RadPane elements invisible when floating
Related resources for "RadPane elements invisible when floating"

Silverlight Docking Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]