I have been able to set the default value in the filter using the 'value' attribute in filterable.filterField. I have also been able to set the default value using
Even through I have been able to pre-populate the value field, my custom filter does not get applied when the page is loaded. When I click on a dropdown list item in my column filter, the custom filter is applied with the item i clicked on AND my pre-populated value as expected.
What I need is a way to have my filter function called on the value i pre-populate the filter with (simulate clicking on the predefined value in the drop down list). I have tried everything in the docs but nothing has worked.
Thanks for reaching out and welcome to our forums.
Just to confirm, are you using the filterBar with the filter feature?
If so, that will lead to unexpected behavior, as you can see at the end of the Filter bar documentation
Note: This feature cannot be used together with filter feature, they are mutually exclusive.
Is this correct or are you using only one of the features?
If you're using only one, could you provide a test case for us to debug? You can get one of our demos and adapt it to match your scenario. You can get more info on that checking our guidelines here https://www.bryntum.com/forum/viewtopic.php?f=1&t=772
Post my code contained in the attached zip file into the editor.
Then in the UI, go to the custom filter on the name column.
See that there is a pre-populated value in the filter bar, but that list has not been filtered.
(I want the list to be filtered when the page is loaded).
Then try adding another name into the filter and see that the filter is then applied using both names.
It should be easy to tell where in the code i have made my modifications.
Thanks for sharing the complete config. I believe that I found the issue with your config. You are using both FilterFeature and feature:{ filter: {.....}} inside your config. Please use either of them. As it is a framework I suggest you to use filterFeature config:
This is a pretty odd behaviour. I can not what is wrong there. Can you please provide us a runnable test case where we can reproduce this issue. You can use this example code https://bryntum.com/products/scheduler/examples/frameworks/vue/javascript/simple/dist/ and add your minimum config to reproduce the issue. You can add pass a small set of data there. This will help us to debug you and assist you in a better way. Please see the guidelines about runnable test case here viewtopic.php?f=35&t=772).