【问题标题】:Hide time row in Kendo UI Scheduler在 Kendo UI Scheduler 中隐藏时间行
【发布时间】:2015-09-09 09:56:20
【问题描述】:

我接手了一个带有 Kendo UI 的项目,并试图弄清楚如何从调度程序中删除 Time-Row (http://www.directupload.net/file/d/4027/icax4ca2_png.htm)。

我阅读了纪录片,但我无法删除它。 它不是 allDaySlot。

真的很烦我,我找不到要更改它的部分。代码如下所示:

$(document).ready(function() {
        var schedulerSelectState = null;
        var now = new Date();
        
        window.schedulerEinsaetzeDisponiert = $("#scheduler").kendoScheduler({
            footer: false,
            date: new Date(),
//            height: 400,
            eventHeight: 30,
            majorTick: 1440,
   
			
            views: [
                {
                    type: "timelineWeek",
                    title: "Wochenansicht"
                },
                {
                    type: "timelineMonth",
                    allDaySlot: false,
                    title: "Monatsansicht",
                    selected: true
                }
            ],
            timezone: "Europe/Berlin",
            selectable: false,

谢谢你帮助我!

【问题讨论】:

    标签: javascript user-interface time kendo-ui scheduler


    【解决方案1】:

    为什么你不只使用 CSS 来做呢?像这样:

    #scheduler .k-scheduler-header-wrap .k-scheduler-table > tbody > tr:nth-child(2),
    #scheduler .k-scheduler-layout > tbody > tr:first-child > td > .k-scheduler-times .k-scheduler-table > tbody > tr:nth-child(2) {
           display: none;
       }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-25
      • 2018-03-03
      相关资源
      最近更新 更多