Hourly Recurrence Not Updating UI Right Away

3 posts, 0 answers
  1. heavywoody
    heavywoody avatar
    79 posts
    Member since:
    Oct 2009

    Posted 01 Apr 2015 Link to this post

    I am adding to my project and hourly choice and also a minutes.  So the user can set the recurrence to happen every x amount of hours or every x amount of minutes.  But when setting either of these, the UI doesn't show the recurrences after the editrecurrence box closes.  I have attached a sample application I made that shows.  Open Recurrence and pick like every 2 hours.  Nothing will happen after you close the dialog.  But if you then open it back up and change the resources or do another UI function, then they will show up. How do I fix this?
  2. heavywoody
    heavywoody avatar
    79 posts
    Member since:
    Oct 2009

    Posted 01 Apr 2015 Link to this post

    Here is a sample app I created showing it.

    https://www.dropbox.com/s/1rz77yc856qfiwc/ScheduleViewWPF.rar?dl=0
  3. UI for WPF is Visual Studio 2017 Ready
  4. Nasko
    Admin
    Nasko avatar
    588 posts

    Posted 03 Apr 2015 Link to this post

    Hello Christian,

    The reason why the Recurrence of the Appointments does not work as expected is because in the modified EditRecurrenceTemplate ControlTemplate the Frequency of the recurring appointment is not specified as soon as a recurrence is selected. So, what you need to do is to use the EnumToBooleanConverter for the IsSelected property of the TabItems in order to specify the Frequency of the Recurrence:
    <telerik:EnumToBooleanConverter x:Key="EnumToBoolConverter" />
    <ControlTemplate x:Key="EditRecurrenceTemplate" TargetType="{x:Type telerik:SchedulerDialog}">
    ...
        <telerik:RadTabItem x:Name="RepeatHourly" Header="Hour/Minute"
                            IsSelected="{Binding RecurrenceType, Converter={StaticResource EnumToBoolConverter}, ConverterParameter=Hourly, Mode=TwoWay}">
           ...
        </telerik:RadTabItem>
    ...
    </ControlTemplate>

    Hopes this helps.

    Regards,
    Nasko
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top