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
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.
George
the Telerik team
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
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
Attached you can find the sample in VS2008. Could you please let me know the steps to reproduce the problem?
George
the Telerik team
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
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.
George
the Telerik team
Thank you for your response, i'm looking forward to a fix.
Until then, i will use your workaround.
Greetings,
Thomas
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
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.