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).
You should look into 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 fnFilter javascript method.
精彩评论