Solved

How do you filter a table in MVC 4 c# using a dropdown box

Posted on 2014-04-23
4
317 Views
Last Modified: 2014-07-30
Please help
  I have a table with data and trying to do the following
   1) click on an item in the dropdown box
    2) hit the enter button on the page
    3) have the table display the requested data
Sorting.docx
0
Comment
Question by:vcurtis
  • 3
4 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 40019019
Just to be clear:  Are you trying to have the filtering occur wholly on the client's side (i.e. via Javascript), or do you actually want to perform an entire post back to the server to effect the filter?

Side note:  For your comment (i.e. the "IMPORTANT NOTE"), you are actually using a client-side comment. This text will be sent back to end-user's machine, and they will be able to view the note by simply viewing the source of your page (as any browser can do). I think you meant to use a server-side comment instead:

e.g.

@* IMPORTANT NOTE:
   We have to use... *@

Open in new window

0
 

Author Comment

by:vcurtis
ID: 40019025
The filter just filters the data.  There will be no updating the database. The original plan was to do it on the client side. I am told that it should be quick and simple "yea right".
0
 

Author Comment

by:vcurtis
ID: 40019028
So I already have the data back from the database, I am thinking that I can just do some kind of jquery/ query to filter the view.
  ........Am I close or far off
0
 

Author Closing Comment

by:vcurtis
ID: 40230214
Thank you
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question