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

Select all events for a day

7 Answers 384 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
ziental
Top achievements
Rank 1
ziental asked on 18 Jun 2019, 12:08 PM

I have several events on the same day (allday), and I have a requirement to move all events from one day to another.

I know that today it is possible to hold the CTRL key and select one by one, but I would like to know if there is any feature to select all from the same day.
Or if it does not exist, I can put a button below the day for the user click, and i do this programmatically.

Thank you.

7 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 20 Jun 2019, 08:27 AM
Hello,

You are indeed correct that the select functionality of the Scheduler allows to select multiple events by holding the "CTRL" key and then drag them to the desired slot. This could be tested in the following demo:


Alternatively, you could also create a custom button with two DatePicker widgets that retrieves the events in the specified range and then moves them to the specified date. Refer to the following Dojo example that demonstrates a similar scenario:


In the above demo, click the "Move All Events" button to open the dialog, then select 13 June 2013 in the 'From' DatePicker and 12 June 2013 in the 'To' Datepicker. Then, clicking on the 'Done' button will correctly move only the AllDay events to the specified date. Note that the DatePickers initially start for the current year(2019), however as the demo service returns events for year 2013 you should correctly select 2013 year from the DatePicker and then choose the 13/12 June dates to test the example.

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
ziental
Top achievements
Rank 1
answered on 21 Jun 2019, 10:39 AM

Excellent solution. Even better than I imagined.

 

Thank you

0
ziental
Top achievements
Rank 1
answered on 21 Jun 2019, 06:22 PM

Dimitar, could you help me with one more problem?

I made a modification (suggested by another Admin), but when I change the date, the button does not work when the date change.

$(document).ready(function () {
$(".k-scheduler-navigation").prepend('<li class="k-state-default k-header"><a role="button" href="#" class="k-button k-pdf"><span class="k-icon k-i-file-pdf mr-1"></span>Export to PDF</a></li>');
$("#btnMoveAll").kendoButton();
});

 

What do I need to put in the Navigate for the button to work again?

0
Dimitar
Telerik team
answered on 24 Jun 2019, 09:51 AM
Hello,

I have added the modification to the previously sent Dojo and the export button works correctly in the Week View. Could you test the example and let me know if this also works correctly on your end?

https://dojo.telerik.com/EmuXiXaK/6

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
ziental
Top achievements
Rank 1
answered on 24 Jun 2019, 12:23 PM
Dimitar, thanks for the reply.
But your example has the same problem.

Click the "Move All" button as the popup opens normally.
But after changing the date, clicking on the navigation buttons and trying to click on the "Move All" button the popup will not open anymore.
0
Accepted
Dimitar
Telerik team
answered on 25 Jun 2019, 10:46 AM
Hello,

The described behavior could be bypassed with a simple check - if the Dialog widget is already initialized, then the open() method is used to show the widget, otherwise it is initialized:
function eventOpen(){
  var dialog = $("#dialog").getKendoDialog();
    
  if (dialog == undefined) {   
    $("#dialog").kendoDialog({ ... });
  }
}

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
ziental
Top achievements
Rank 1
answered on 25 Jun 2019, 11:32 AM
Working, thanks for your help.
Tags
Scheduler
Asked by
ziental
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
ziental
Top achievements
Rank 1
Share this question
or