30 Minutes Difference

Hi Guys,

i have a question. If i click on the scheduler at 9 o clock for example. Automatic the start date was 9 o clock and end date is 30 minutes later. 9.30.
How can i change it, it was always 15 Minutes?

Yes i know. I can change it, after clicking in the Datepicker. But i want it directly.

Thank you for your help.

Best Regards

Serkan

3 Replies 1 reply marked as answer

AK Alagumeena Kalaiselvan Syncfusion Team July 21, 2020 10:43 AM UTC

Hi Serkan, 

Thanks for contacting Syncfusion support. 

We have checked your reported scenario “30 minutes duration between event start and end date” and You can change that duration value in editor window by changing the Duration option within the Scheduler OnPopupOpen event. Refer the below code for that. 
 
<SfSchedule TValue="AppointmentData" Height="550px" SelectedDate="@(new DateTime(2020, 1, 31))"> 
    <ScheduleEvents TValue="AppointmentData" OnPopupOpen="@OnPopupOpen"></ScheduleEvents> 
    <ScheduleEventSettings DataSource="@DataSource"> 
    </ScheduleEventSettings> 
</SfSchedule> 
 
@code{ 
    public void OnPopupOpen(PopupOpenEventArgs<AppointmentData> args) 
    { 
        if (args.Type == PopupType.Editor) 
        { 
            args.Duration = 15;       // To Change the event duration 
        } 
    } 
 ... 
} 
 
Also we have already documented this scenario which is available in below UG link. 

For the additional information, you can use Interval and SlotCount properties of Scheduler Timescale to customize the default Scheduler time duration as like below code. 

<SfSchedule TValue="AppointmentData" Height="650px"> 
    <ScheduleTimeScale Interval="60" SlotCount="4"></ScheduleTimeScale>     // To set 15 minutes time slot duration for Scheduler  
</SfSchedule> 

Refer the below UG link for more details. 

Kindly get back to us, if you need further assistance. 

Regards 
Alagumeena.K 


Marked as answer

SE Serkan July 21, 2020 06:20 PM UTC

Thank you Alagumeena. It works great :)


VM Vengatesh Maniraj Syncfusion Team July 22, 2020 07:24 AM UTC

Hi Serkan, 

You are most welcome. 

We are happy that our solution has fulfilled your requirement. 

Please get in touch with us if you need any further assistance. 

Regards, 
Vengatesh  


Loader.
Up arrow icon