Hi,
I have a question is there a way to add a Search bar to a grid that the data source is a variable?
Discussion posts and replies are publicly visible
For out of the box features to be enabled on RecordType backed grids, the data source MUST be either a RecordType reference, or an a!recordData() reference.
Either reference should be perfectly happy to live in a local variable, but as is always good practice, you should test it out to make sure, that it works the way you need it to.
This approach only works with limited amounts of data though but it is possible to do via just a regular text field which does a query via an "includes".