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

Calendar layout issues

6 Answers 89 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Bart
Top achievements
Rank 1
Bart asked on 26 Oct 2016, 01:53 PM

Hi,
I have a layout issue with my wpf radcontrol calendar.

when I initially load appointments in the scheduler everything works fine. but when I reload the appointments the layout sometimes becomes a mess in a lot of different ways, see my screenshot.

I need the possibility to reload appointments because they can also be changed in another application.

is there a way to fix this behavior or am I doing something wrong here?

I can't really pinpoint the issue but it looks like all views become messed up except for the currently selected one when I update my appointments.

Thank you for replying

6 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 28 Oct 2016, 07:51 AM
Hi Bart,

We had a similar issue in RadScheduleView when .Net 4.6.2 is installed on the machine - when the AppointmentsSource is changed at runtime, the GroupHeaders are not correctly recycled.
This issue is already fixed in R3 2016 release of UI for WPF.

Could you please check whether that''s the case at your side?

Regards,
Yana
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
0
Bart
Top achievements
Rank 1
answered on 28 Oct 2016, 09:40 AM

Hi Yana,

thank you for your reply, I don't have .net 4.6.2 installed, I have however .net 4.6.0 and 4.6.1 installed. The application is running on .net 4.5.0

I tried to update telerik to version 2016.3.914 and 2016.3.1024 but both gave me the following error when starting the application

"An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll

Additional information: 'The invocation of the constructor on type 'Telerik.Windows.Controls.RichTextBoxUI.StylesGallery' that matches the specified binding constraints threw an exception.' Line number '379' and line position '44'.

System.Windows.Markup.XamlParseException was unhandled
Message: An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: 'The invocation of the constructor on type 'Telerik.Windows.Controls.RichTextBoxUI.StylesGallery' that matches the specified binding constraints threw an exception.' Line number '379' and line position '44'.
"

I tried what happens when I remove the "StylesGallery" elements but then I just end up having the same error for another element. so I moved  back to 2016.2.613 again and everything works fine again except for the calendar layout.

unfortunately I was unable to test the radSchedular with the new version of telerik. I hope you can help me out here somehow.

0
Yana
Telerik team
answered on 02 Nov 2016, 09:38 AM
Hi Bart,

The best option is to upgrade to R3 2016 and test whether the issue with the ScheduleView is fixed. So, I'd ask you to send us more details/sample code on the issue with the RichTextBoxUI.StylesGallery, so we rto be able to investigate what could cause it.

Looking forward to your reply.

Regards,
Yana
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
0
Bart
Top achievements
Rank 1
answered on 02 Nov 2016, 11:32 AM

Hi Yana,

I have it working now with the latest version of telerik. The calendar works fine and I'm not sure what failed.

I removed this part "<telerik:StylesGallery AssociatedRichTextBox="{Binding AssociatedRichTextBox, Mode=OneWay}" />"

everywhere in the xamls and now everything seems to be fine.
I'm not sure what this part does. In a testproject of mine, this part wasn't an issue.

 

I would like to send you some more code but I don't know what I should send and I don't want to send the complete project.

 

regards Bart

0
Yana
Telerik team
answered on 04 Nov 2016, 07:54 AM
Hello Bart,

You could paste here in this thread the xaml you're using as well as any custom styles. Also are you using Implicit Styles to set a theme to the Telerik controls?

Regards,
Yana
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
0
Bart
Top achievements
Rank 1
answered on 16 Nov 2016, 11:31 AM

Hi Yana,
I think we can close this post. I removed the custom style and now the issues are gone.

we don't need those custom styles in the project anymore so for me it's no problem.

Tags
Calendar
Asked by
Bart
Top achievements
Rank 1
Answers by
Yana
Telerik team
Bart
Top achievements
Rank 1
Share this question
or