deep-jade
deep-jade14mo ago

One rangepicker to filter two lists using useSimpleList

Can I use a single rangepicker to filter two lists using useSimpleList. For example if I submit a range on the rangepicker it will filter the first list based on one column and the second list based on another column
4 Replies
kapa.ai
kapa.ai14mo ago
Hi @ahnaf1022. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
kapa.ai
kapa.ai14mo ago
---------------------- Hmm, I don't know enough to give you a confident answer yet. However, you can refer to the useSimpleList documentation (https://refine.dev/docs/api-reference/antd/hooks/list/useSimpleList) for more information on how to use the hook and its filtering capabilities. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
useSimpleList | refine
By using useSimpleList, you can get properties that are compatible with Ant Design component. All features such as sorting, filtering, and pagination come out of the box. Under the hood it uses useTable for the fetch.
kapa.ai
kapa.ai14mo ago
<@543682490951532554> kapa.ai is still learning and improving, please let us how it did by reacting below
like-gold
like-gold14mo ago
of course you can. just store range picker values on state and use filter https://refine.dev/docs/api-reference/antd/hooks/list/useSimpleList/#filtering