Solved

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

Posted on 2014-04-23
4
315 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 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn how to count occurrences of each item in an array.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now