search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

All-day events in Resources view

Asked by Vahid
2 years ago.

Hi everyone,

how it is possible to develop the resource view with events that can be displayed as an all day event?
Is there any live Demo regarding to this Feature?

Answer posted by Dan Letecky [DayPilot]
2 years ago.

Yes, it is possible.

There is no live demo available but you can try this example:

<div id="dp"></div>

<script type="text/javascript">

    var dp = new DayPilot.Calendar("dp");
    dp.startDate = "2022-03-25";
    dp.viewType = "Resources";
    dp.showAllDayEvents = true;
    dp.columns.list = [
        { name: "Meeting Room A", id: "A"},
        { name: "Meeting Room B", id: "B" },
        { name: "Meeting Room C", id: "C" },
        { name: "Meeting Room D", id: "D" },
        { name: "Meeting Room E", id: "E" },
        { name: "Meeting Room F", id: "F" },
    ];
    dp.init();

    dp.update({events: [
        {
            start: "2022-03-25",
            end: "2022-03-25",
            allday: true,
            id: 1,
            text: "Event 1",
            resource: "C"
        }
    ]});


</script>

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.