react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

Typeahead Filter

Open madhan-dhamodaran opened this issue 8 years ago • 14 comments

  • Have you already searched for similar issues? Please help us out and double-check first!

  • Also, please don't be that person who deletes this template. It's here for a reason.

  • Thanks!


Which version of React JS are you using?

✅ Officially supported ✅

  • [ ] v15.4.x

⚠️ Not officially supported, expect warnings ⚠️

  • [ ] v15.5.x
  • [ ] v15.6.x

☣️ Not officially supported, expect warnings and errors ☣️

  • [ ] v16.x.x

Which browser are you using?

✅ Officially supported ✅

  • [x] IE 9 / IE 10 / IE 11
  • [ ] Edge
  • [x] Chrome

⚠️ Not officially supported, but "should work" ⚠️

  • [ ] Firefox
  • [ ] Safari

I'm submitting a ...

  • [ ] 🐛 Bug Report
  • [x] 💡 Feature Request

👋 Need general support? Not sure about how to use React itself, or how to get started with the Grid? Please do not submit support request here. Instead see

https://github.com/adazzle/react-data-grid/blob/master/CONTRIBUTING.md


Issue Details

Please include:
- What the current behavior is
- What the desired behvaior is
- (If Bug) Steps to reproduce the issue
- (If Feature) The motivation / use case for the feature

We especially love screenshots / videos of problems, and remember
The Best Issue Is A Pull Request™

@azu @amanmahajan7 @maiis @txm @omarish

Hello All,

I am proposing a feature request. And I would like to contribute this feature to the community.

  • What the current behavior is : Currently, the dropdown values for a multi-select/auto-select/single-select filters, needs to be loaded all at once. For example, if the dropdown values are amounting to thousands records, and when we happen to have multiple filters in a same grid, the browser hangs because of the load.

  • What the desired behvaior is : We should be able to load say 50 drop-down by when the grid loads and anything beyond that, needs to be loaded on the fly. When the user starts typing in the filter box, it makes a server call/ get the matching updated list limited to 50 records again. This way, the browser is not overloaded.

  • (If Feature) The motivation / use case for the feature : Like I mentioned earlier, this keeps the grid as efficient as possible by not overloading the browser memory. For example, if we are loading a dictionary and this is getting deployed in a shared environment, any newly added dictionary items in the shared environment gets loaded to the drop down values as we are making the server call to fetch the information.

To be clear, We are not writing making any ajax calls or anything. Typically, we call the handleFilterChange() method with the column key and the filtered value with which, whoever is using it can write their logic to make the server call or to load the drop down values.

madhan-dhamodaran avatar May 01 '18 14:05 madhan-dhamodaran

@amanmahajan7 @maiis @txm @omarish,

Any updates on this please guys. I am about to start my development.

Kindly advise.

Thanks, Madhan

madhan-dhamodaran avatar May 03 '18 15:05 madhan-dhamodaran

Please check this comment

amanmahajan7 avatar May 18 '18 20:05 amanmahajan7

hi @amanmahajan7 ,

I have finished developing this feature. I was waiting for one of you guys to let me know how to create a PR for this. I have created a stand alone filter called TypeAheadFilter as we can keep the filter types separate and the props would stay independent too.

Please advise how to create a PR for this. May be you can go thru the code and let me know what you think.

Thanks, Madhan

madhan-dhamodaran avatar May 18 '18 20:05 madhan-dhamodaran

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please reopen this if you feel it has been incorrectly closed and we will do our best to look into it. Thank you for your contributions.

stale[bot] avatar Jul 12 '18 11:07 stale[bot]

@amanmahajan7,

I have finished adding this and ready to raise a PR. I have been trying to get in touch with a you guys through email, slack etc., but in vain.

Not sure how to reopen this issue. But, this issue is valid and I will be raising a PR before this weekend

madhan-dhamodaran avatar Jul 12 '18 13:07 madhan-dhamodaran

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please reopen this if you feel it has been incorrectly closed and we will do our best to look into it. Thank you for your contributions.

stale[bot] avatar Aug 11 '18 14:08 stale[bot]

All,

I am still working on this. I will raise a PR ASAP

Thanks, Madhan

madhan-dhamodaran avatar Aug 13 '18 19:08 madhan-dhamodaran

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please reopen this if you feel it has been incorrectly closed and we will do our best to look into it. Thank you for your contributions.

stale[bot] avatar Sep 12 '18 19:09 stale[bot]

All,

I am still working on this. I will raise a PR ASAP

Thanks, Madhan

madhan-dhamodaran avatar Sep 12 '18 20:09 madhan-dhamodaran

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please reopen this if you feel it has been incorrectly closed and we will do our best to look into it. Thank you for your contributions.

stale[bot] avatar Oct 12 '18 20:10 stale[bot]

All,

I am still working on this. I will raise a PR ASAP

Thanks, Madhan

madhan-dhamodaran avatar Oct 12 '18 20:10 madhan-dhamodaran

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please reopen this if you feel it has been incorrectly closed and we will do our best to look into it. Thank you for your contributions.

stale[bot] avatar Nov 11 '18 21:11 stale[bot]

All,

I am still working on this. I will raise a PR ASAP

Thanks, Madhan

madhan-dhamodaran avatar Nov 12 '18 12:11 madhan-dhamodaran

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please reopen this if you feel it has been incorrectly closed and we will do our best to look into it. Thank you for your contributions.

stale[bot] avatar Dec 12 '18 13:12 stale[bot]