How to not show any table data unless the user selects from filters first
How to not show any table data unless the user selects from filters first
6 Replies
I guess you can set the default value on the filter, but make sure the default value is not available on the filter itself
like this
@fikurimax Thanks for your reply, but options i don't want to set default values and want use select then show data on table based on filter applied
@msaidm Take a look at this thread: https://discord.com/channels/883083792112300104/1138348892786790451
@archilex Thank you , but do you think there's better way to do this ?
Currently that seems to be the best way. You have to intercept the tableQuery on boot so it won’t load any models and that function is really the only place to do that. You might be able to try submit a PR to core to expose a more elegant API, but I don’t think the team will accept it. I’ve only seen it be asked 2-3 times, so it’s not a common use case, and since the solution in the thread exists, it’s probably the way to go.