Skip to main content
patriciam905
July 21, 2023
Solved

Search bar in Read Only Grid

  • July 21, 2023
  • 2 replies
  • 0 views

Hi,

I have a question is there a way to add a Search bar to a grid that the data source is a variable?

    Best answer by mathieud0001

    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". 

    2 replies

    jamesm4933
    July 21, 2023

    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.

    mathieud0001
    Brainy
    July 21, 2023

    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".