Floating RadDocumentPane has no title after deserialization

3 Answers 71 Views
Docking
Pete
Top achievements
Rank 2
Iron
Iron
Iron
Pete asked on 03 Jun 2021, 10:30 AM

We have documents that use RadDocumentPane and we serialize them on shutdown so we can restore them when the application restarts. The problem is that floating windows don't get their titles set.

While the application is running, forms can be dragged outside and left floating, then redocked and the titles work fine. The issue occurs after startup and the forms are restored from deserialization, floating windows end up with no title. Redocking them works but the tab has no text.

From what I can see of the XAML there are no errors reported for binding to Header or Title, yet the same code works for docked windows but not for floating windows.

3 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 08 Jun 2021, 07:14 AM

Hello Pete,

Thank you for the shared information. 

I tried to reproduce this scenario on my end in a sample project, however I am afraid that I was not able to do so. That is why I am attaching the project that I used for testing purposes. May I ask you to check it out and see how it differs from the setup on your end? 

Should you need any further assistance, may I ask you to modify the shared project in order to demonstrate the described behavior and send it back? This will hopefully allow me to investigate further and better assist you.

I am looking forward to your reply.

Regards,
Vladimir Stoyanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Pete
Top achievements
Rank 2
Iron
Iron
Iron
commented on 08 Jun 2021, 08:04 AM

Thanks! This is going to be my next step, can I reproduce it in a sample.
0
Pete
Top achievements
Rank 2
Iron
Iron
Iron
answered on 08 Jun 2021, 10:38 AM

I've extended your sample and added some code that I felt was relevant, however wasn't able to reproduce the issue.

What I did find is that if I remove the SetSerializationTag call, I can get the tab to go blank I'm guessing because serialization cannot match the documents. I'm going to look into that a bit further.

Thanks for your help!

Vladimir Stoyanov
Telerik team
commented on 09 Jun 2021, 10:04 AM

Thank you for the shared project. You are correct that when the SerializationTag is changed prior to the loading a new instance of a RadDocumentPane is created. It does not have its DataContext set and that is why the created document pane has no header. 

Feel free to take your time investigating the scenario. Should you manage to replicate the observed on your end behavior, please send over the updated project and I will gladly investigate further.  

0
Pete
Top achievements
Rank 2
Iron
Iron
Iron
answered on 24 Jun 2021, 10:59 AM

We did find an answer, by accident, and can't explain why it makes it work!

This:

<Style TargetType="telerik:RadPaneGroup" BasedOn="{StaticResource RadPaneGroupStyle}">
	<Style.Triggers>
		<Trigger Property="IsSingleItem" Value="False">
			<Setter Property="TabStripPlacement" Value="Top"/>
		</Trigger>
	</Style.Triggers>
</Style>

was changed to this:

<Style TargetType="telerik:RadPaneGroup" BasedOn="{StaticResource RadPaneGroupStyle}">
	<Setter Property="TabStripPlacement" Value="Top"/>
</Style>

Vladimir Stoyanov
Telerik team
commented on 29 Jun 2021, 07:23 AM

I am glad to hear that you were able to resolve the scenario. It is difficult to say what might be the reason for the observed on your end behavior.

Of course, I will be happy to investigate, if you can share a sample project demonstrating the setup.

Tags
Docking
Asked by
Pete
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Vladimir Stoyanov
Telerik team
Pete
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or