Premium support for our pure JavaScript UI components


Post by peterjc »

Hi, I am using the scheduleContextFeature so that a scheduler cell highlights when a user clicks in it.

Is there a way to "clear" the selected cell, or at least clear the highlight?

E.g. if I filter my resources it stays highlighted when there is no cell.

2023-02-02_15-44-11.png
2023-02-02_15-44-11.png (71.78 KiB) Viewed 206 times

There are also other times I would like to "clear" this.

Thanks in advance


Post by tasnim »

Hi,

I tried to reproduce it in our online basic example here https://bryntum.com/products/scheduler/examples/basic/
But I wasn't able to repro this.

Could you please provide more details on how to reproduce this?


Post by peterjc »

Hi, I have attached an example that uses the scheduleContextFeature, ie see in the html

[scheduleContextFeature]="true"

When I click in a cell, it high lights the cell and the resource.

I have a button click I would like to somehow "clear" these selections if that is possible?

Attachments
unselect.zip
(200.7 KiB) Downloaded 16 times

Post by tasnim »

Hello,

To deselect the records, you could set https://bryntum.com/products/scheduler/docs/api/Scheduler/view/Scheduler#property-selectedRecords to an empty array ([])

Please check the gif below

chrome_vrMk2MLETY.gif
chrome_vrMk2MLETY.gif (363.18 KiB) Viewed 156 times

Is it what you were looking for?


Post by peterjc »

Thanks for that, this does clear the resource selections, but not the scheduler selected cell. IN your above example it must not have the scheduleContextFeature set to true, so we don't see the scheduler selected cell.

A also wanted to clear this. Is there a way to also do this?

Thnaks in advance


Post by tasnim »

I tried to disable the feature in runtime. But that looks like it's not working properly, so I opened a Github issue for that to fix. Here it is
https://github.com/bryntum/support/issues/6109


Post Reply