RadScheduleView - Edit Recurrence Appointment

5 posts, 0 answers
  1. Javor
    Javor avatar
    4 posts
    Member since:
    Sep 2013

    Posted 29 Aug Link to this post

    I use RadScheduleView  with EditAppointmentTemplate and Style. I add new Custom appointment and I made him Recurrence after this change a can't edit again parent. Only one time I saw edit appointment window with edit parent button and after that when i click double time nothing happens.

  2. Javor
    Javor avatar
    4 posts
    Member since:
    Sep 2013

    Posted 30 Aug Link to this post

    I found why because Recurrence Appointment are from another type Appointment not from MyAppointment .
    If i bind Selected Appointment then i can't edit because can't cast Appointment  MyAppointment.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 30 Aug Link to this post

    Hello Javor,

    I guess that the EditAppointmentDialog template is not completely, could you please take a look at the template you're using and check whether the following button is present:

    <telerik:RadButton x:Name="EditParentAppointmentButton"
            AutomationProperties.AutomationId="EditParentAppointmentButton"
            IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
            Command="{x:Static telerikScheduleView:RadScheduleViewCommands.EditParentAppointment}"
            Visibility="{Binding CanEditParentAppointment, Converter={StaticResource BooleanToVisibilityConverter}}">
        <ToolTipService.ToolTip>
            <TextBlock telerik:LocalizationManager.ResourceKey="EditParentAppointment"/>
        </ToolTipService.ToolTip>
        <TextBlock Margin="4 0" telerik:LocalizationManager.ResourceKey="EditParentAppointment" Foreground="{StaticResource RadScheduleForeground}"/>
    </telerik:RadButton>

    Additionally, I'd like to ask you how you've implemented the custom Appointment class - does it inherit from AppointmentBase class or implement IAppointment interface?

    Regards,
    Yana
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  5. Javor
    Javor avatar
    4 posts
    Member since:
    Sep 2013

    Posted 30 Aug Link to this post

    It is implement like that class MyAppointment : Appointment  
    But i have another problem i need to merge dictionary like that
    Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary()
    {
                            Source = new Uri("/Telerik.Windows.Themes.Office_Black;component/Themes/Telerik.Windows.Controls.ScheduleView.xaml", UriKind.RelativeOrAbsolute)
                        });

     from Telerik.Windows.Controls.ScheduleView.dll whit included xaml (baml). What is path for these baml resources.
    I want to include included xaml form this dll by current theme and merge with application Resources 

  6. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 31 Aug Link to this post

    Hi Javor,

    I'd suggest you take a look at the following topic in our documentation:
    Setting a Theme (Using Implicit Styles)

    which described in the details how to merge the needed resource dictionaries for styling RadScheduleView.

    Regards,
    Yana
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for WPF is Visual Studio 2017 Ready