ScheduleView - button to show there are more appointments to be shown.

4 posts, 0 answers
  1. Salini
    Salini avatar
    6 posts
    Member since:
    Jun 2014

    Posted 04 Aug 2015 Link to this post

    Hi, is there a way to add a button indication that there are more appointments to be shown.

    Please see the attachment.

  2. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 07 Aug 2015 Link to this post

    Hi Salini,

    RadScheduleView provides a similar to the desired by you behavior using the AppointmentNavigationButtons. These buttons navigate to the next and previous range of appointments. You can visualize them using the AppointmentNavigationButtonsVisibility property. 

    To see the buttons in action please, check the following example from our online demos:
    http://demos.telerik.com/silverlight/#ScheduleView/ScheduleViewConfigurator

    Hopes this helps.

    Regards,
    Nasko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. Salini
    Salini avatar
    6 posts
    Member since:
    Jun 2014

    Posted 10 Aug 2015 in reply to Nasko Link to this post

    Hi,

    Previous and Next buttons are navigating to next range of dates.

    Can I fix the range to same selected date or week and view the appointments that are not in focus or not in the visual part of the schedular on previous next button click. 

  5. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 12 Aug 2015 Link to this post

    Hello Salini,

    You can change the behavior of the AppointmentNavigationButtons. ​For that purpose you need to modify the default template of the ScheduleView control. The buttons could be found inside the ControlTemplate with x:Key="RadScheduleViewControlTemplate" and you could attach a custom command to them that will be executed as soon as the buttons are clicked:
    <ControlTemplate x:Key="RadScheduleViewControlTemplate" TargetType="telerikScheduleView:RadScheduleView">
    ...
        <!--Change the command of the Button-->
        <telerik:RadButton CornerRadius="2 2 0 0" HorizontalContentAlignment="Stretch" Command="{x:Static telerikScheduleView:RadScheduleViewCommands.GoToNextAppointment}" FocusVisualStyle="{x:Null}">
            <Grid Width="160">
                <TextBlock telerik:LocalizationManager.ResourceKey="NextAppointment" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                <TextBlock Text="▼" FontSize="8" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="8 0"/>
            </Grid>
        </telerik:RadButton
    ...
     </ControlTemplate>

    You could use the Scrolling of the TimeRuler functionality inside the button's commands to scroll to a specific time or appointment inside RadScheduleView:
    http://docs.telerik.com/devtools/silverlight/controls/radscheduleview/features/timeruler/scrolling

    Hopes this helps.

    Regards,
    Nasko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top