We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Current day refresh button.

Hello, is there a refresh button that updates the current view of the schedule,

something similar to the scroll arrows "<" or ">" but for the current day.

Thanks and regards



5 Replies

SS SaiGanesh Sakthivel Syncfusion Team October 20, 2022 11:28 AM UTC

Hi Jose,


Your requirement is available in the WPF SfScheduler control. As per the implementation of SfScheduler, the default today button will be shown in the right side of the header view. Please refer to the image for your reference.



You can enable and disable the today button with the help of ShowDatePickerButton property in the SfScheduler. Please refer to the UG documentation for your reference.


UG: https://help.syncfusion.com/wpf/scheduler/date-navigations#show-date-picker


Please let us know if you have any concerns.


Regards,
SaiGanesh Sakthivel



JM Jose Maria October 20, 2022 08:31 PM UTC

Hello, following your example, when I use "<" or ">" an event is fired in :

        public async void ExecuteOnDemandLoading(object parameter)

        {

            if (parameter == null)

            {

                return;

            }

            this.ShowBusyIndicator = true;

            await Task.Delay(50);

            await Application.Current.MainWindow.Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, new Action(() =>

            {

                this.Events = this.GenerateSchedulerAppointments((parameter as QueryAppointmentsEventArgs).VisibleDateRange);

            }));

            this.ShowBusyIndicator = false;

        }


that I use to load the data from sql server, but the today button does not fire this event.

Thanks and regards








SS SaiGanesh Sakthivel Syncfusion Team October 21, 2022 01:16 PM UTC

Hi Jose,


#Regarding LoadOnDemandCommand is not trigger when using Today button.

As per the implementation of SfScheduler, the LoadOnDemandCommand will trigger when the visibleDates in the view changed. We have mentioned in the UG documentation about ‘Load on Demand command’. Please refer to the following UG documentation for your reference.


UG: https://help.syncfusion.com/wpf/scheduler/loadondemand#load-on-demand-command


Please let us know if you have any concerns.


Regards,
SaiGanesh Sakthivel



JM Jose Maria October 23, 2022 11:35 AM UTC

Thanks and regards



MS Muniappan Subramanian Syncfusion Team October 24, 2022 05:40 AM UTC

Hi Jose,


We are glad that our solution meets your requirement. Please let us know if you need any further updates. As always, we are happy to help you out.


Regards,

Muniappan S.


Loader.
Live Chat Icon For mobile
Up arrow icon