Calendar layout issues

7 posts, 0 answers
  1. Bart
    Bart avatar
    16 posts
    Member since:
    May 2014

    Posted 26 Oct Link to this post

    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

  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 28 Oct Link to this post

    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!
  3. UI for WPF is Visual Studio 2017 Ready
  4. Bart
    Bart avatar
    16 posts
    Member since:
    May 2014

    Posted 28 Oct in reply to Yana Link to this post

    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.

  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 02 Nov Link to this post

    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!
  6. Bart
    Bart avatar
    16 posts
    Member since:
    May 2014

    Posted 02 Nov in reply to Yana Link to this post

    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

  7. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 04 Nov Link to this post

    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!
  8. Bart
    Bart avatar
    16 posts
    Member since:
    May 2014

    Posted 16 Nov Link to this post

    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.

Back to Top
UI for WPF is Visual Studio 2017 Ready