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

RadPane Content empty until refocus

1 Answer 104 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Mark Newman
Top achievements
Rank 1
Mark Newman asked on 12 Apr 2010, 03:18 PM
Hi,

I'm adding instances of RadPane to a RadPaneGroup at runtime following a RadMenuItem click event:
        private void RadMenuItem_Click(object sender, Telerik.Windows.RadRoutedEventArgs e) 
        { 
            RadPane rp = new RadPane(); 
            rp.Header = "New Foo"
            rp.VerticalAlignment = VerticalAlignment.Top; 
            rp.Name = "Foo"
            rp.IsSelected = true
            radPaneGroup1.AddItem(rp, Telerik.Windows.Controls.Docking.DockPosition.Center); 
 
            Foo foo = new Foo(); 
            rp.Content = foo; 
        } 
 

The RadPane is shown as the last pane in the group and appears to have the focus as the pane header is highlighted.
However, my user control, "Foo", isn't shown in the RadPane.

Please note: This has only started happening with the Q1 2010 WPF controls! This doesn't happen with the Q3 2009 WPF controls.

If I click on a different pane then back to my new pane, the user control, "Foo", is now visible in the new pane!

If there is more than 1 pane displayed I can use this code as a workaround at the end of my click event:
            foreach (RadPane pane in radPaneGroup1.Items) 
            { 
                pane.Focus(); 
            } 
The above workaround doesn't work if the pane added is the only pane in the group.

I tried the code in Miroslav's blog but this didn't work for me either:
http://blogs.telerik.com/miroslavnedyalkov/posts/10-03-04/how_to_activate_a_pane_in_the_telerik_docking_control_for_wpf_and_silverlight.aspx

Any idea what I need to add to make my code work with the new version of these controls?

Thanks,
Mark






1 Answer, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 15 Apr 2010, 11:43 AM
Hi Mark,

 This is a known issue we introduced with the Q1 2010 version of RadControls. The problem is fixed in the latest internal build so I would suggest you to use it instead of the official version or wait for the next SP to be released (till the end of April).

Sincerely yours,
Miroslav Nedyalkov
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.
Tags
Docking
Asked by
Mark Newman
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or