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

Hourly Recurrence Not Updating UI Right Away

2 Answers 108 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
heavywoody
Top achievements
Rank 1
heavywoody asked on 01 Apr 2015, 03:23 PM
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 Answers, 1 is accepted

Sort by
0
heavywoody
Top achievements
Rank 1
answered on 01 Apr 2015, 03:25 PM
Here is a sample app I created showing it.

https://www.dropbox.com/s/1rz77yc856qfiwc/ScheduleViewWPF.rar?dl=0
0
Nasko
Telerik team
answered on 03 Apr 2015, 10:27 AM
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.

 
Tags
ScheduleView
Asked by
heavywoody
Top achievements
Rank 1
Answers by
heavywoody
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or