Using jQuery UI widget Autocomplete, how do I implement instant search in ASP.NET MVC 3 app?
-
I have a page in my ASP.NET MVC 3 app that contains a table displaying database content and a form, that lets you input a search query for filtering the displayed database content. The input to the form is handled by a jQuery UI Autocomplete widget. I have autocomplete support working in the Autocomplete widget, so that a dropdown menu with suggested search terms appears as I type in it. However, I would also like for the table (of database content) to be automatically filtered as I enter the search string. How do I go about this? Please keep in mind when answering that the solution has to fit the ASP.NET MVC 3 framework (and that I'm new to web development).
-
Answer:
You should look into http://datatables.net/. It does accept filtering and is Jquery compatible. If you don't want to use their built in Filter field UI, you can hide that field and call the http://datatables.net/api javascript method.
aknuds1 at Stack Overflow Visit the source
Related Q & A:
- How do I implement actionBarSherlock?Best solution by androidbegin.com
- How can I implement an atomic incr and decr on top of an eventually consistent key-value store?Best solution by Stack Overflow
- How can I fix parser Error in ASP.NET?Best solution by parse.com
- How to use Authorize Attribute in asp.net MVC?Best solution by Stack Overflow
- How to use angular.js with strongly typed view in asp.net-MVC?Best solution by ojdevelops.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.