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

RadPane elements invisible when floating

3 Answers 65 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Vidyadhar
Top achievements
Rank 1
Vidyadhar asked on 30 Jan 2012, 07:40 AM
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.

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 02 Feb 2012, 09:37 AM
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 >>

0
Accepted
Doug
Top achievements
Rank 1
answered on 05 Feb 2012, 05:27 PM
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
0
Vidyadhar
Top achievements
Rank 1
answered on 06 Feb 2012, 04:35 AM
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.
Tags
Docking
Asked by
Vidyadhar
Top achievements
Rank 1
Answers by
George
Telerik team
Doug
Top achievements
Rank 1
Vidyadhar
Top achievements
Rank 1
Share this question
or