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

Resource restrictions - buggy behaviour

2 Answers 62 Views
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 20 Feb 2019, 12:21 AM

When implementing your example of restrictions (https://www.telerik.com/kendo-vue-ui/components/scheduler/restrictions/) without putting the methods inside the "new Vue" object, the restrictions are not working correctly.

Please find attached code where the restriction logic is put inside a .js file instead and registered as a vue component.

Step 1: Move "Call Charlie" to the same place as "Performance Review" - it pops up with an alert.

Step 2: Now move "Performance Review".

As you can see, the "Call Charlie" ends up getting updated to the place where it was moved to as part of step 1, so the event data was seemingly updated without it reflected in the rendering. Then when moving "Performance Review" both "Call Charlie" and "Performance Review" are updated..

2 Answers, 1 is accepted

Sort by
0
Simon
Top achievements
Rank 1
answered on 20 Feb 2019, 12:27 AM

example:

https://qfvpc9.run.stackblitz.io

0
Accepted
Veselin Tsvetanov
Telerik team
answered on 21 Feb 2019, 12:31 PM
Hello Simon,

Here you will find a CodeSandBox sample, which implements the Scheduler logic in a separate component. As you can see the restrictions work as expected. What I have changed compared to the implementation suggested in our demo was to remove the capital letters from the ​@moveEnd and ​@resizeEnd. Using capital letters in this case would result in issues as the described.

As a small token of gratitude for bringing this demo issue to our attention, I have updated your Telerik points.

Regards,
Veselin Tsvetanov
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Simon
Top achievements
Rank 1
Answers by
Simon
Top achievements
Rank 1
Veselin Tsvetanov
Telerik team
Share this question
or