This is a migrated thread and some comments may be shown as answers.
Change event triggered when "Show business hours" is clicked. Bug, or by design?
6 Answers 18 Views
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 07 Feb 2014, 08:49 AM

Hi,

The documentation states the following about the change event: Fired when the user selects a cell or event in the scheduler.

During testing I discovered that the change event is raised whenever something on the scheduler is clicked i.e.

  • Show business hours
  • Date navigation

I tried to filter on the e.slots.length property of the event arguments, but this isn't robust enough. When you accidently select a slot and click "Show business hours", the e.slots array is not reset.

6 Answers, 1 is accepted

Sort by
0
Marco
Top achievements
Rank 1
answered on 07 Feb 2014, 08:54 AM
Rephrase: during testing I discovered that the change event is raised whenever something on the scheduler is clicked and there are selected slots.
0
Kiril Nikolov
Telerik team
answered on 10 Feb 2014, 08:22 AM
Hello Marco,

Change event is fired, because when you select to show only business hours, the whole view is redrawn. This behavior is by design, and not changes in this implementation are planned.

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Marco
Top achievements
Rank 1
answered on 10 Feb 2014, 09:26 AM
Hello Kiril,

Thanks for your reply. Shouldn't the e.slots argument of the change event count zero elements when the view is redrawn? What if I selected a slot after business hours?

Regards,
Marco
0
Kiril Nikolov
Telerik team
answered on 10 Feb 2014, 12:12 PM
Hi Marco,

When you select an item outside of the business hours and then click the button to show only the events in the business hours, the whole interval is selected and this is why you see items in the e.slots property. This behavior is not by design and I have added this to our internal bug tracker, so we can fix it.

Thank you very much for bringing this to our attention.

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Marco
Top achievements
Rank 1
answered on 10 Feb 2014, 12:25 PM
Hi Kiril,

You're welcome. Changing the current date produces the same behaviour...
0
Kiril Nikolov
Telerik team
answered on 10 Feb 2014, 12:56 PM
Hi Marco,

I will add this information to the already created ticket as well.

Thanks again!

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Asked by
Marco
Top achievements
Rank 1
Answers by
Marco
Top achievements
Rank 1
Kiril Nikolov
Telerik team
Share this question
or