Our pure JavaScript Scheduler component


Post by mats »

Any chance you can share this test case in a Codepen? Fork the one above for example, so we can run it and debug it?


Post by dbennett »

https://jsfiddle.net/dpLws5j9/1/

perhaps the problem is with the custom view? also, do I need to reset the tick size on each view change? thanks.


Post by alex.l »

Hi,

Please describe actual and expected result, it is not clear what's wrong. Thanks!

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy

We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services


Post by dbennett »

hi. when clicking Week View I'd like to show a view containing a week by day & hour.


Post by alex.l »

You registered preset and never added it to scheduler's presets set. Please see docs https://bryntum.com/products/schedulerpro/docs/api/Scheduler/preset/PresetManager

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy

We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services


Post by dbennett »

hi, can someone please shoot me a minimal repro that switches reliably between day and week views (i'd like to show week by day & hour, i don't care if this is done with configs or zoom level or what)

I don't want

  • the params to change when hitting the button multiple times (ie, tick size)
  • any errors such as: @bryntum_schedulerpro.js?v=055d49b6:106961 Uncaught TypeError: Cannot read properties of null (reading 'getTime') when switching ie to day view from a scroll position in week view

Post by alex.l »

Hi,

Please let us know what else we need to add to the demo we already shared with you which already doing the thing you requested? https://codepen.io/marciogurka/pen/pvodoEP
I can't get this error happened, how to reproduce that? As well as I can't see any problems with tick size.

It will really help us if you share your runnable solution with steps to reproduce the problems you highlighted. An error you mentioned might happen because you passed undefined or String into method that expected Date type. I can't know exactly without steps to reproduce, this is just a guess.

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy

We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services


Post by dbennett »

hi alex, above example seems good but can you edit the week view to show hours per day as well as days per wk? thank you


Post by dbennett »

hi, trying with the default presets. when i switch from day -> week, the startDate shifts to the 16th (sunday) instead of today. this creates an error when switching back to day view. thoughts?


Post by marcio »

Hey dbennett,

Regarding viewtopic.php?p=164738#p164738, do you mean to have one more level with hours on the week view? If you could provide a screenshot to clarify the desired result.

Regarding viewtopic.php?p=164746#p164746, could you please provide a runnable test case for us to check? Are you seeing any errors on the console?

Best regards,
Márcio

How to ask for help? Please read our Support Policy


Post Reply