Silverlight 5 breaks RadPane Header Binding

14 posts, 0 answers
  1. Bryce
    Bryce avatar
    32 posts
    Member since:
    Aug 2010

    Posted 05 Jan 2012 Link to this post

    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
  2. Georgi
    Admin
    Georgi avatar
    350 posts

    Posted 09 Jan 2012 Link to this post

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

  3. DevCraft banner
  4. Sébastien Dias
    Sébastien Dias avatar
    3 posts
    Member since:
    Mar 2006

    Posted 09 Jan 2012 Link to this post

    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
  5. Georgi
    Admin
    Georgi avatar
    350 posts

    Posted 12 Jan 2012 Link to this post

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

  6. Nidhi
    Nidhi avatar
    19 posts
    Member since:
    Jun 2011

    Posted 09 Feb 2012 Link to this post

    Hi Team,

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

    Thanks,
    Nidhi

  7. Georgi
    Admin
    Georgi avatar
    350 posts

    Posted 15 Feb 2012 Link to this post

    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 >>
  8. Nick Wood
    Nick Wood avatar
    126 posts
    Member since:
    Feb 2010

    Posted 16 Feb 2012 Link to this post

    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
  9. Georgi
    Admin
    Georgi avatar
    350 posts

    Posted 21 Feb 2012 Link to this post

    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 >>
  10. Michael
    Michael avatar
    24 posts
    Member since:
    Sep 2010

    Posted 10 Mar 2012 Link to this post

    When will a fix for the "Hedaer" issue be available?  This is a serious bug that prevents us from upgrading to the latest release.
  11. Georgi
    Admin
    Georgi avatar
    350 posts

    Posted 12 Mar 2012 Link to this post

    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 >>
  12. Timothy
    Timothy avatar
    2 posts
    Member since:
    Feb 2012

    Posted 10 Apr 2012 Link to this post

    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);
  13. Georgi
    Admin
    Georgi avatar
    350 posts

    Posted 11 Apr 2012 Link to this post

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

  14. Timothy
    Timothy avatar
    2 posts
    Member since:
    Feb 2012

    Posted 11 Apr 2012 Link to this post

    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);
  15. Georgi
    Admin
    Georgi avatar
    350 posts

    Posted 12 Apr 2012 Link to this post

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

Back to Top
DevCraft banner