Binding fails after switching between tabbed document, and floating mode (radpane)

10 posts, 0 answers
  1. Thomas Felis
    Thomas Felis avatar
    4 posts
    Member since:
    Oct 2009

    Posted 26 Oct 2010 Link to this post

    Hello!

    We have an issue with databinding and raddocking mode change. 
    When you switch to floating mode, the databind fails.
    After you swich back to docked state/tabbed document, the databinding works again.
    We experienced this issue when we had a usercontrol inside of the radpane. Also tried to manually update the datacontext at every panestatechange, but when the pane was in tabbed document mode by default, it just made it worse (it failed, and never get works again).

    Here's a small code piece we used to make our proof-of-concept:

    Window1.xaml
    <telerikDocking:RadDocking HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" AllowUnsafeMode="True" x:Name="InfoPanel_RadDocking">
                <telerikDocking:RadDocking.DocumentHost>
                    <telerikDocking:RadSplitContainer >
                        <telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="1000,400">
                            <telerikDocking:RadPane x:Name="InfoPane" Header="Pane1" BorderThickness="0" >
                                <TelerikDockingBugPOC:DemoControl />
                            </telerikDocking:RadPane>
                            <telerikDocking:RadPane x:Name="Pane2" Header="Pane2" BorderThickness="0" IsEnabled="{Binding Path=LayoutStateHandler.IsWagnisTabEnabled, Mode=OneWay}">
                            </telerikDocking:RadPane>
                            <telerikDocking:RadPane x:Name="Pane3" Header="Pane3" BorderThickness="0">
                            </telerikDocking:RadPane>
                        </telerikDocking:RadPaneGroup>
                    </telerikDocking:RadSplitContainer>
                </telerikDocking:RadDocking.DocumentHost>
            </telerikDocking:RadDocking>

    The Democontrol.xaml:
    <Grid Background="LightGreen">
            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding DemoText}" />
       </Grid>

    The binding points to a dummy string property of Window1 (so it's NOT in the Democontrol.xaml.cs).

    We're using the latest version of radcontrols.

    Thank you for your help!

    Greetings, 
    Thomas
  2. George
    Admin
    George avatar
    1332 posts

    Posted 31 Oct 2010 Link to this post

    Hello Thomas,

    I tried to reproduce the problem, but to no avail. Attached you can find the sample project. Please, let me know if I am missing something.

    Regards,
    George
    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Thomas Felis
    Thomas Felis avatar
    4 posts
    Member since:
    Oct 2009

    Posted 02 Nov 2010 Link to this post

    Hello George,

    Thank you for the sample project!

    It's my bad, but i didn't tell all the details about my sample project (sorry for that again).
    I'm using .NET 3.5 + Prism.
    And VS2008.

    In this environment, the sample project still produces the bug.

    Greetings, 
    Thomas
  5. Mike Henders
    Mike Henders avatar
    11 posts
    Member since:
    May 2006

    Posted 04 Nov 2010 Link to this post

    Thomas,

    I had a problem where I had two RadPane inside a RadPaneGroup in a RadPane.DocumentHost.  When I switched from one pane to another the binding was sometimes lost on one of the panes.  I never got to the root of the problem, but I worked around it by creating a UserControl, set the DataContext on the UserControl, and then embedding the UserControl inside the RadPane.  I've never lost the binding on the UserControl.

    Cheers,
    Mike
  6. George
    Admin
    George avatar
    1332 posts

    Posted 05 Nov 2010 Link to this post

    Hello,

    Attached you can find the sample in VS2008. Could you please let me know the steps to reproduce the problem?

    Regards,
    George
    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
  7. Thomas Felis
    Thomas Felis avatar
    4 posts
    Member since:
    Oct 2009

    Posted 05 Nov 2010 Link to this post

    Hi George,

    I tried your solution with the latest Q3 beta controls.

    Here are the basic steps to reproduce the issue:
    -set some text
    -right click on Pane1 -> Floating
    (or drag out the Pane1, so it will float)
    -right click on Pane1 -> Dockable
    -re-dock to document host
    -right click on Pane1 -> Floating
    -the text disappeared...

    Thank you for your help! :)

    Greetings,
    Thomas


  8. George
    Admin
    George avatar
    1332 posts

    Posted 10 Nov 2010 Link to this post

    Hi Thomas,

    We reproduced the problem. It seems there is a bug in the fix. The floating pane loses its DataContext when it is docked in the initialed RadPaneGroup and then goes floating. If you dock it anywhere except the initial group, there is no problem. We will need some time to resolve the issue. I will update the PITS work item. You can track its progress with Issue ID = 3952.
    To workaround it, I would suggest you to bind the DemoControl to the DataContext of the RadDocking. Sorry for any inconvenience caused.

    Greetings,
    George
    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
  9. Thomas Felis
    Thomas Felis avatar
    4 posts
    Member since:
    Oct 2009

    Posted 18 Nov 2010 Link to this post

    Hello George,

    Thank you for your response, i'm looking forward to a fix.
    Until then, i will use your workaround.

    Greetings,
    Thomas
  10. Tessa
    Tessa avatar
    8 posts
    Member since:
    Jul 2011

    Posted 27 Mar 2014 in reply to George Link to this post

    Hi George, 

    I am experiencing the same issues. I have tried to view the Issue ID 3952, but I cannot find it. 

    Please can you confirm if this issue has been fixed as I am unable to use your work around - this will not work for the set up that we have in our system. 

    Thanks
    Tessa
  11. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 27 Mar 2014 Link to this post

    Hi Tessa,

    The issue you are looking for has been already fixed. The link is not working as we have migrated our Public Issue Tracking System to the new Feedback portal. However as the issue was already fixed before the migration you won't be able to find it there.

    Hope this helps.

    Regards,
    Kalin
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready