Hide footer command while using a Custom View.

4 posts, 0 answers
  1. Pavlos
    Pavlos avatar
    7 posts
    Member since:
    Dec 2014

    Posted 22 Feb Link to this post

    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.

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 24 Feb Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Pavlos
    Pavlos avatar
    7 posts
    Member since:
    Dec 2014

    Posted 24 Feb Link to this post

    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.

  5. Pavlos
    Pavlos avatar
    7 posts
    Member since:
    Dec 2014

    Posted 24 Feb in reply to Pavlos Link to this post

    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
        },

Back to Top
UI for ASP.NET MVC is VS 2017 Ready