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

How to Refresh DayPilot Lite Scheduler after entering event

Asked by Anonymous
7 years ago.

I am entering event data into database using model window. It is working, after clicking on OK button in model window it is inserting data to the database and closing the model window. But the to show the recently added event in the scheduler i have manually refresh the scheduler page. Is there any way to do this automated.
OnCommand="DayPilotScheduler1_Command" is not working in DayPilot lite.

Please help.

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

The only way to do it in the Lite version is to place the Scheduler inside an UpdatePanel and refresh the panel.

It is demonstrated in this tutorial (not described in the tutorial text but it is used in the sample code):

It is refreshed using a hidden Button control which is invoked from modal.closed using __doPostBack():

function createModal() {
    var modal = new DayPilot.Modal(); = 60;
    modal.width = 300;
    modal.opacity = 50;
    modal.border = "10px solid #d0d0d0";
    modal.closed = function () {
        if (this.result && this.result.refresh) {
            __doPostBack(id.refreshButton, '');

    modal.setHeight = function (height) {
        modal.height = height;
        return modal;

    modal.height = 260;
    modal.zIndex = 100;

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