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

Removing the footer options from kendo scheduler pop up

2 Answers 56 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
developer
Top achievements
Rank 1
developer asked on 02 Aug 2016, 10:54 AM

I wanted to remove the save and cancel options that are  appearing by default in kendo scheduler pop up.I had gone through the Scheduler Api source but didn't find the way in which I could achieve it.Any help will be appreciated.Please find the attachment for more info.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Grant
Top achievements
Rank 2
Veteran
Iron
answered on 02 Aug 2016, 03:05 PM

Hi Developer, 

I can think of a couple options that could help you;

1) Hide the DIV that hold the buttons when the window opens (below)

$("#scheduler").kendoScheduler({
  editable: {
    window: {
      //(optional) will prevent the buttons from appearing (on window load) then disappearing
      animation: false,
      //listen to 'activate' instead of 'open' as all opening animation will be complete
      activate: function() {
        //this = kendoUI Window widget
        this.wrapper.find("div.k-edit-buttons").hide();
      }
    }
  }
});

2) Create your own window template that doesn't have any buttons, here is a demo.

Good Luck,

Grant

0
Accepted
Grant
Top achievements
Rank 2
Veteran
Iron
answered on 02 Aug 2016, 03:07 PM
Tags
Scheduler
Asked by
developer
Top achievements
Rank 1
Answers by
Grant
Top achievements
Rank 2
Veteran
Iron
Share this question
or