# How to filter dropdown results based on user search, and check all rows

**URL:** <https://community.embeddable.com/t/how-to-filter-dropdown-results-based-on-user-search-and-check-all-rows/66>\
**Category:** FAQs\
**Created:** [July 31, 2024, 3:25pm UTC](https://community.embeddable.com/t/how-to-filter-dropdown-results-based-on-user-search-and-check-all-rows/66 "2024-07-31T15:25:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ella-embeddable](https://dub1.discourse-cdn.com/flex013/user_avatar/community.embeddable.com/ella-embeddable/32/15_2.png) [@ella-embeddable](https://community.embeddable.com/u/ella-embeddable)\
**Post date:** [July 31, 2024, 3:25pm UTC](https://community.embeddable.com/t/how-to-filter-dropdown-results-based-on-user-search-and-check-all-rows/66/1 "2024-07-31T15:25:43Z")

</div>

We have two examples of querying your underlying data as your end user takes some action (e.g. typing into a dropdown search bar):

1. [Dropdown component from our vanilla components](https://github.com/embeddable-hq/vanilla-components/blob/main/src/components/vanilla/controls/Dropdown/Dropdown.emb.ts#L99)  
This uses embeddableState to perform the loadData call whenever you search.
2. [Table component from our vanilla components](https://github.com/embeddable-hq/vanilla-components/blob/main/src/components/vanilla/charts/TableChart/TableChart.emb.ts#L118)  
Uses the same technique to do paging.

You can use a similar logic to enable a user to download the full dataset when clicking ‘download as csv’: by changing the `limit` argument on the TableChart.emb.ts. By adding `limit: undefined` your user can download the full dataset (still filtered for their level of access).
