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

Hide footer command while using a Custom View.

3 Answers 86 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Pavlos
Top achievements
Rank 1
Pavlos asked on 22 Feb 2016, 10:36 AM

Hi,

I'm currently using a custom timeline view on my scheduler as my only view.
In this particular case the "business hours" button isn't really relevant.
How would one go about hiding this button as elegantly as possible?

Many thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 24 Feb 2016, 07:56 AM
Hello Pavlos,

You can adjust the "footer" option of the desired view to achieve the desired behavior. Please check the example below:

$("#scheduler").kendoScheduler({
    views: [
        "day",
        {
            type: "workWeek",
            selected: true
            footer: false
    },

Regards,
Vladimir Iliev
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
0
Pavlos
Top achievements
Rank 1
answered on 24 Feb 2016, 08:51 AM

Hello Vladimir,

 

Thank you for your reply.
My scheduler is declared using the MVC wrapper and my custom view is declared using JS.
How would you go about doing this in my case?

Thanks in advance.

0
Pavlos
Top achievements
Rank 1
answered on 24 Feb 2016, 10:41 AM

So I just figured out it's basically the same for a custom view.
You just put it in the options object, eg:

var TimeLineThreeMonths = window.kendo.ui.TimelineView.extend({
    options: {
        name: "TimeLineThreeMonths",
        title: "Months Interval",
        selectedDateFormat: "{0:D} - {1:D}",
        selectedShortDateFormat: "{0:d} - {1:d}",
        majorTick: 1440,
        minorTickCount: 1,
        footer: false
    },

Tags
Scheduler
Asked by
Pavlos
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Pavlos
Top achievements
Rank 1
Share this question
or