This is a migrated thread and some comments may be shown as answers.

Customize business hours

4 Answers 1306 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mohamed
Top achievements
Rank 1
Mohamed asked on 28 Nov 2013, 09:54 PM
How can I customize business hours range? and how can I hide that option ?

4 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 29 Nov 2013, 08:11 AM
Hello Mohamed,

You should set the workDayStart and workDayEnd to control the start and end of the businesses day. The footer button can be hidden by setting the footer.command to false.

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sreekar
Top achievements
Rank 1
answered on 04 Dec 2013, 11:42 AM
Hi Rosen,

Can you tell me how we can use footer.command concept in ASP MVC?

Thanks,
Sreekar 
0
Rosen
Telerik team
answered on 04 Dec 2013, 12:26 PM
Hi Sreekar,

You should be able to hide it by setting the appropriate view's WorkDayCommand option to false.

@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.TaskViewModel>()
    .Name("scheduler")
    .Views(views =>
    {
        views.WorkWeekView(view=> view.WorkDayCommand(false));
    })
    .Timezone("Etc/UTC")   
    .DataSource(d => d
                //..
    )
)

Unfortunately, this is currently not working but it will be fixed in the next internal build (available to our commercial license holders).

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sreekar
Top achievements
Rank 1
answered on 04 Dec 2013, 04:41 PM
Hi Rosen,

I have found the appropriate solution for my problem by this code

.Views(views =>
    {
        views.DayView();
        views.WorkWeekView(workWeekView => workWeekView.Selected(true))
            .ShowWorkHours()
            .Footer(false);

Thank you for the Fast Reply!!

thanks,
Sreekar
Tags
Scheduler
Asked by
Mohamed
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Sreekar
Top achievements
Rank 1
Share this question
or