question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] w2grid: Be capable of specifying different fields for simple-search and advanced-search.

See original GitHub issue
  • I’m submitting a … [ ] bug report [x] feature request [ ] question about the decisions made in the repository

  • What is the current behavior? Currently developers can provides searches property for a grid to specifed what fields they want to search for. But they cannot specify different fields individually for the simple-search mode and advanced-search mode. For example, there is a grid that we want only 3 fields in the simple-search mode to do a fuzzy searching, meanwhile in advanced-search mode of this grid we would want 8 fields to do more complex and stricter filtering. I notice that each search filter has a simple: t/f property, which can specify this field should show or not in simple-seach mode. But whether the field shows or not on the simple-search dropdown menu, its value always be submitted to server when triggering a ‘All Fields’ search. For end users this is very confusing because they cannot see those extra search fields in the dropdown menu at all.

  • What is the expected behavior? If a search field’s property ‘simple’ is set to false, it only shows and takes effect in advance-search mode, not in the simple-search mode.

  • Other information I am using w2ui-1.5.rc1 version.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
thomasguocommented, Jun 13, 2017

Hi @pidlo ,

Thanks for your help. Yes we can prepare/modify the searchData before sending search request, just like your code as well as my code above show. However, this requirement is so common that almost every grid with search will need to handle this. So I prefer it would be handled by default by framework, not by application developers. I suppose that would make developers pleased. Hope I am not asking for too much. 😃

0reactions
vitmalinacommented, May 21, 2021

The use of simple is correct. However in 2.0 there are plans to significantly change search, so the simple property might or might not stay. Because of this, I am closing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

w2grid.searches | JavaScript UI - w2ui
Initially the default search field is "all", however, you can remove it or define a different search field. To define a different default...
Read more >
MVC - CodeProject
Design of multilayered web-based application operations using ASP.NET MVC 3.0/ JqGrid/ Unit of Work/ Repository/ EF 4.1 and a code demonstration of how...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found