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

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

9 Answers 234 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Thomas Felis
Top achievements
Rank 1
Thomas Felis asked on 26 Oct 2010, 03:36 PM
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

9 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 31 Oct 2010, 06:01 PM
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
0
Thomas Felis
Top achievements
Rank 1
answered on 02 Nov 2010, 09:25 AM
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
0
Mike Henders
Top achievements
Rank 1
answered on 05 Nov 2010, 02:47 AM
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
0
George
Telerik team
answered on 05 Nov 2010, 09:27 AM
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
0
Thomas Felis
Top achievements
Rank 1
answered on 05 Nov 2010, 04:27 PM
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


0
George
Telerik team
answered on 10 Nov 2010, 03:54 PM
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
0
Thomas Felis
Top achievements
Rank 1
answered on 18 Nov 2010, 10:09 AM
Hello George,

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

Greetings,
Thomas
0
Tessa
Top achievements
Rank 1
answered on 27 Mar 2014, 02:24 PM
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
0
Kalin
Telerik team
answered on 27 Mar 2014, 04:37 PM
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.

 
Tags
Docking
Asked by
Thomas Felis
Top achievements
Rank 1
Answers by
George
Telerik team
Thomas Felis
Top achievements
Rank 1
Mike Henders
Top achievements
Rank 1
Tessa
Top achievements
Rank 1
Kalin
Telerik team
Share this question
or