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

Silverlight 5 breaks RadPane Header Binding

13 Answers 200 Views
Docking
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bryce
Top achievements
Rank 1
Bryce asked on 06 Jan 2012, 12:41 AM
Hi,

I just recently changed my Target Silverlight Version to be SL5. When I did so, the bindings for my RadPane Headers broke. Is there a fix for this? When I change the Target Silverlight Version to be SL4, it works fine.

Some code:

<telerik:RadSplitContainer Width="800" telerik:StyleManager.Theme="Metro" Orientation="Horizontal" InitialPosition="DockedRight" telerik:ProportionalStackPanel.RelativeSize="100, 100">
                        <telerik:RadPaneGroup telerik:StyleManager.Theme="Metro">
                            <telerik:RadPane CanUserClose="False" CanUserPin="True" ContextMenuTemplate="{x:Null}" Header="{Binding SelectedCase}">
                                <telerik:RadPane.HeaderTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Horizontal" Background="#25A0DA">
                                            <TextBlock Text="        " />
                                            <HyperlinkButton Foreground="White" Content="{Binding CustomerName, FallbackValue='No case selected'}" NavigateUri="{Binding Url}" TargetName="_blank" />
                                            <TextBlock Foreground="White" Text=" - " />
                                            <HyperlinkButton Foreground="White" Content="{Binding Number, FallbackValue='select a case to view details'}" NavigateUri="{Binding Url}" TargetName="_blank" />
                                            <TextBlock Text="        " />
                                        </StackPanel>
                                    </DataTemplate>
                                </telerik:RadPane.HeaderTemplate>
                            </telerik:RadPane>
                        </telerik:RadPaneGroup>
                    </telerik:RadSplitContainer>

Thanks,
Bryce

13 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 09 Jan 2012, 04:54 PM
Hello Bryce,

Unfortunately I wasn't able to reproduce the described problem.

Could you please send us a support ticket with a  simple project or more specifics on your bindings?
Then we will be able to reproduce the problem and  help you.

All the best,
Georgi
the Telerik team

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

0
Sébastien Dias
Top achievements
Rank 2
answered on 10 Jan 2012, 12:07 AM
Same problem SL4 -> SL5, when i use LoadLayout as I did before i  lost all my RadPane Title (even with Header property).
This happens only with RadPane who are in DocumentHost, when the RadPane is in a RadSplitContainer with initialPosition no problems with the Title.

My version: 2011.3.1220.1040
0
Georgi
Telerik team
answered on 12 Jan 2012, 09:24 AM
Hi,

There are obviously some differences between Silverlight 4 and Silverlight 5. We will investigate this problem truly and will try to get to bottom of it.

We have logged the problem here , where you can track the processes of fixing it.

Kind regards,
Georgi
the Telerik team

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

0
Nidhi
Top achievements
Rank 1
answered on 09 Feb 2012, 06:16 PM
Hi Team,

We are also stuck in above issue. Is there any update on above issue?

Thanks,
Nidhi

0
Georgi
Telerik team
answered on 15 Feb 2012, 10:54 AM
Hello,

After some research we have found out why this issue occur.

When a Pane is undocked it changes its visual tree and therefore any binding connected to that tree is lost.

We are working on a long therm solution, but for now setting a DataContext to RadDock like shown below works just fine :

Header = "{Binding DataContext.SelectedCase, ElementName=dock, Mode= TwoWay}"


All the best,
Georgi
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Nick Wood
Top achievements
Rank 1
answered on 17 Feb 2012, 04:25 AM
We also have a very similar problem when going from SL4 -> SL5.

When loading the layout in the DocumentHost we get:
Cannot resolve TargetName Hedaer.
Stack:
   at MS.Internal.XcpImports.VisualStateManager_GoToState(Control reference, String StateName, Boolean useTransitions, Boolean& refreshInheritanceContext)     at System.Windows.VisualStateManager.GoToState(Control control, String stateName, Boolean useTransitions)     at Telerik.Windows.Controls.TabControl.RadTabControlBase.GoToState(Boolean useTransitions, String[] stateNames)     at Telerik.Windows.Controls.RadPaneGroup.ChangeVisualState(Boolean useTransitions)     at Telerik.Windows.Controls.ItemsControl.ChangeVisualState()     at Telerik.Windows.Controls.RadPaneGroup.<PrepareContainerForItemOverride>b__0()


Could this just simply be a Typo?

Nick
0
Georgi
Telerik team
answered on 21 Feb 2012, 04:24 PM
Hi Nick,

We are aware of this issue and it is indeed a typo.
We are working on fixing it and the fix should be available in our next release (next Monday).

Regards,
Georgi
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Michael
Top achievements
Rank 1
answered on 10 Mar 2012, 06:56 PM
When will a fix for the "Hedaer" issue be available?  This is a serious bug that prevents us from upgrading to the latest release.
0
Georgi
Telerik team
answered on 12 Mar 2012, 03:00 PM
Hi Michael,

The problem is fixed and it is available in our latest internal build.

Greetings,
Georgi
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Timothy
Top achievements
Rank 1
answered on 10 Apr 2012, 10:17 PM
We're seeing this same issue after upgrading to SL5 and Version 2012.1.326.1050 of the Silverlight controls.
It seems that the binding for the HeaderProperty of the RadPane doesn't occur the for the RadPane added to the RadpaneGroup. However, if a second RadPane is added, or if the first pane is unpinned, the binding updates and the header appears.
Is this the same issue? When can a fix be expected?
var pane = new RadPane();
                    pane.CanFloat = false;
                    pane.ContextMenuTemplate = null;
                    pane.AutoHideHeight = .33 * App.Current.RootVisual.RenderSize.Height;
                    pane.DataContext = layer;
                    pane.SetBinding(RadPane.HeaderProperty, new Binding("DisplayName"));
 
                    var ctrl = new DynamicContentControl();
                    ctrl.Resources.Source = new Uri("/FleetManagement;component/Assets/MapLayers.xaml", UriKind.Relative);
                    ctrl.SetBinding(DynamicContentControl.ContentProperty, new Binding(".") { Source = layer });
                    pane.Content = ctrl;
                    pane.SetBinding(RadPane.VisibilityProperty, new Binding("IsVisible") { Source = layer, Converter = (IValueConverter)App.Current.Resources["VisibilityConverter"] });
                    DataPaneGroup.AddItem(pane, DockPosition.Center);
0
Georgi
Telerik team
answered on 11 Apr 2012, 02:44 PM
Hi Timothy,

I was not able to reproduce the described behavior. Attached you can find the project, where I have tried to do so. Can you, please check it out and let me know if we are doing the same thing? Nevertheless this does not seem to be the same issue. It looks like the Pane header is not updated correctly. It would be great If you can create a simple project where the issue is reproducible and send it to us. Please note that you should open a support ticket and attach it there.

All the best,
Georgi
the Telerik team

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

0
Timothy
Top achievements
Rank 1
answered on 11 Apr 2012, 03:59 PM
Hi Georgi,
I was able to reproduce the issue after changing a couple things in your sample project. I removed the preexisting radpane that was in paneGroup. Also, I encounter the error when using the AddItem method. (as opposed to using Items.Add as in your example)
I've opened a support ticked with the modified sample solution in it. (ticket id 532732)

Thank you for your help thus far. 

 
 
var pane = new RadPane();
            pane.CanFloat = true;
            pane.ContextMenuTemplate = null;
            pane.AutoHideHeight = .33 * App.Current.RootVisual.RenderSize.Height;
            Binding bind = new Binding("Text");
            bind.ElementName = "headerTextBox";
            pane.SetBinding(RadPane.HeaderProperty, bind);
 
 
            // Note: I'm using the Telerik.Windows.Controls.Docking namespace here and the AddItem method to recreate the issue
            paneGroup.AddItem(pane, DockPosition.Center);
            //paneGroup.Items.Add(pane);
0
Georgi
Telerik team
answered on 12 Apr 2012, 08:52 AM
Hello Timothy,

Thank you for your support ticket. I will look in it.

Kind regards,
Georgi
the Telerik team

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

Tags
Docking
Asked by
Bryce
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Sébastien Dias
Top achievements
Rank 2
Nidhi
Top achievements
Rank 1
Nick Wood
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Timothy
Top achievements
Rank 1
Share this question
or