Page 1 of 1

[REACT] Clear resource filter not working for tree type example

Posted: Thu May 25, 2023 1:52 pm
by rupen.shah.access

Respected Team,

Another issue which I am facing is, filter is working find but When I click on the button I want to show data and filter should removed. Basically clear out the filter.

Could you please help me how I can resolve the same issue.

You can find the attached example.

Thanks
Rupen


Re: [REACT] Clear resource filter not working for tree type example

Posted: Thu May 25, 2023 6:21 pm
by alex.l

Hi Rupen,

Did you try my suggestion to use

schedulerRefcheck.current?.instance.resourceStore.clearFilters()

https://bryntum.com/products/scheduler/docs/api/Scheduler/data/ResourceStore#function-clearFilters


Re: [REACT] Clear resource filter not working for tree type example

Posted: Fri May 26, 2023 7:53 am
by rupen.shah.access

Yes I have tried but its not working in tree type.

Its work with other type.

Thanks
Rupen


Re: [REACT] Clear resource filter not working for tree type example

Posted: Fri May 26, 2023 8:31 am
by tasnim

Hi,

It seems to be working with our latest version here https://bryntum.com/products/scheduler/examples/tree/

chrome_TokpdjHt2K.gif
chrome_TokpdjHt2K.gif (581.21 KiB) Viewed 436 times

What version are you using?


Re: [REACT] Clear resource filter not working for tree type example

Posted: Tue May 30, 2023 1:36 pm
by rupen.shah.access

Dear Team,

I have upgrade the version to 5.3.6 but its still not working.

Thanks
Rupen


Re: [REACT] Clear resource filter not working for tree type example

Posted: Tue May 30, 2023 2:11 pm
by alex.l

Hi Rupen,

Please attach your full application where it is possible to reproduce this problem, we need to reproduce that to help you.


Re: [REACT] Clear resource filter not working for tree type example

Posted: Tue Jun 06, 2023 12:00 pm
by rupen.shah.access

Please find attached example. I have update the scheduler version to 5.3.6. Also empty text is not showing when search the resource section.


Re: [REACT] Clear resource filter not working for tree type example

Posted: Tue Jun 06, 2023 4:53 pm
by alex.l

Could you please attach full code that we can run? It is working well in our applications, so we need to see your app with steps to reproduce problems you mentioned.
Visually code

schedulerRefcheck.current!.instance.resourceStore.clearFilters();

looks correct. If I do the same in our app, it is working as expected.

Thank you!


Re: [REACT] Clear resource filter not working for tree type example

Posted: Thu Jun 08, 2023 1:57 pm
by rupen.shah.access

Please find attached working example.


Re: [REACT] Clear resource filter not working for tree type example

Posted: Thu Jun 08, 2023 6:10 pm
by alex.l

Thank you!

Since you are using FilterBar feature, you need to clear filterBar's filter field value to clear filter. That's the correct way to go in this case, filterBar works differently than regular filters.
To get filter field, please use https://bryntum.com/products/grid/docs/api/Grid/feature/FilterBar#function-getColumnFilterField that available on feature instance.