Premium support for our pure JavaScript UI components


Post by tomerPlanit »

Hi I use scheduler 5.2.9 with angular 14.
I found that if you zoom in with a lot of dependencies the system is Stuck.
For check it:
1) Enter to your big data set example.
2) Move to custom.
3) Put 100 resources and 100 events.
4) Select the dependencies feature.
5) Try to zoom in to last zoo level by time line context menu zoom in slider.

You will stuck the scheduler(You have some problem in the forum to upload screen png).


Post by alex.l »

Thank you for the report and clear steps to reproduce, here is the ticket for this problem: https://github.com/bryntum/support/issues/6119

All the best,
Alex


Post by tomerPlanit »

Is it possible to know from the view preset what it's zoom level?


Post by tasnim »

Attachments
Screenshot 2023-02-08 153842.png
Screenshot 2023-02-08 153842.png (86.05 KiB) Viewed 167 times

Post by tomerPlanit »

It is not help because I need the check before the scheduler enter to the zoom.
I am listening to "beforePresetChange", and in the event I have the future view preset.
As I understand from the documentation each view preset is zoom level, so I need its index no?


Post by tasnim »

Then you could use the parentIndex of that viewPreset
https://bryntum.com/products/scheduler/docs/api/Scheduler/preset/ViewPreset#field-parentIndex

chrome_xL5ltwQQME.gif
chrome_xL5ltwQQME.gif (412.61 KiB) Viewed 156 times

And here is the code I used

scheduler.on('beforePresetChange', (event) => {
    console.log(event.to.parentIndex);
})

Post by tomerPlanit »

Thanks a lot Tasnim works fine


Post Reply