RadScheduleView- Delete Appointment

5 posts, 0 answers
  1. Ajitha
    Ajitha avatar
    3 posts
    Member since:
    Dec 2011

    Posted 05 Dec 2011 Link to this post

    Hello,

    I am trying to implement the Delete appointment functionlity, and I can see the X button on each of the appointment, but when i click on X button nothing happens. This functionality was working on RadScheduler and it doesnt work on RadScheduleView.
    Any help is appriciated.

    Thanks
    Ajitha
  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 06 Dec 2011 Link to this post

    Hello Ajitha,

    RadScheduleView appointments have an option for deletion by default. It is represented by the delete button in the top right corner of the appointment item.

    Please, share more details on your scenario and the behavior you wish to implement.

    All the best,
    Dani
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft banner
  4. Ajitha
    Ajitha avatar
    3 posts
    Member since:
    Dec 2011

    Posted 06 Dec 2011 Link to this post

    Hello Dani,

    I am using a template with the ResourceDictionary and creating a button on the right hand corner for each appointment, we are not able to handle the click event to delete the appointment. The same piece of code was working with RadScheduler and it doesnt work with  RadScheduleView. The built in delete button would get enabled and we were able to delete an appointment, but now it doesnt do that.

    Thanks
    Ajitha
  5. Ajitha
    Ajitha avatar
    3 posts
    Member since:
    Dec 2011

    Posted 07 Dec 2011 Link to this post

     
  6. Dani
    Admin
    Dani avatar
    848 posts

    Posted 12 Dec 2011 Link to this post

    Hi Ajitha,

    RadScheduler and RadScheduleView are different controls and it is very likely that code or xaml you used for RadScheduler will not work for RadScheduleView.

    The delete button in the appointment item control template works with a Command and a CommandParameter:
    <telerik:RadButton x:Name="DeleteButton" ClickMode="Press" 
                                               CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}"
                                               Command="local:RadScheduleViewCommands.DeleteAppointment" 
                                               HorizontalAlignment="Right" Height="11" IsTabStop="False" Margin="5 5 6 5" 
                                               Padding="0" telerik:StyleManager.Theme="{StaticResource Theme}" 
                                               Visibility="{Binding IsEnabled, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource Self}}" 
                                               VerticalAlignment="Top" Width="11">
                                <Path Data="M0,0 L5,5 M5,0 L0,5" Stroke="{StaticResource AppointmentItemDeleteIconStroke}"/>
                            </telerik:RadButton>

     If you wish to replace that button with your own button, you can easily do that  - simply copy the Command, CommandParameter and Visibility properties values from the original delete button.

    I hope this helps.

    Greetings,
    Dani
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top
DevCraft banner