Our pure JavaScript Scheduler component


Post by skullgaming »

Hi Bryntum Team!
My requirement is to disable a specific row. In which

  • We can't select the row.

  • We can't add/edit any event from UI in this row.

  • We can't drop event to this row like weekend columns eg:- When I try to dropped any event to this row, it should be back to it's previous position.

  • We also can't able to right click on this row.

  • It should not be clickable eg:- I changed the row color using a custom class, but when i clicked on this row, its changed its color to white. That's why it should not be clickable.

Can you help me out of this to achieve my requirements
Thanks!!


Post by mats »

Should be quite easy yes.

We can't select the row.

We also can't able to right click on this row.

It should not be clickable eg:- I changed the row color using a custom class, but when i clicked on this row, its changed its color to white. That's why it should not be clickable.

You could try adding a custom CSS class to your row elements and setting

pointer-events:none;

Docs: https://bryntum.com/docs/scheduler/api/Grid/column/Column#config-renderer

We can't add/edit any event from UI in this row.

We can't drop event to this row like weekend columns eg:- When I try to dropped any event to this row, it should be back to it's previous position.

This could be solved by marking the record https://bryntum.com/docs/scheduler/api/Core/data/Model#field-readOnly


Post by skullgaming »

Thanks Mats.
I turned resource record row read-only to true, But still I am able to drop event to the read-only row.
Is that bug?
https://drive.google.com/file/d/1GiN2k4nU7joBmeTlyRtmugq0_xnW747r/view?usp=sharing


Post by marcio »

Hey skullgaming,

It's a bug indeed. I created a ticket to fix it https://github.com/bryntum/support/issues/4995

Thanks for the report

Best regards,
Márcio


Post by skullgaming »

Hi Team!
Can you tell me when it is fixed?


Post by tasnim »

Unfortunately, it's not on the list of closest releases. If you need this urgently, you could contact our sales for a feature sponsorship here https://www.bryntum.com/services/ to increase the ticket's priority

Good Luck :),
Tasnim


Post Reply