Skip to content

How to search all fields in table using mvc

jothi kumar

Asked Jul 25, 2014, 1:34 AM EDT4 answers
Share
LinkedInX
hi to all,
Here i'm searching one fields to retrieve relevant records But now i want to search all fields in my tables..
 

DESCRIPTION:
 
In my module i'm searching only contactperson name to retrieve relevant record but now i want to search all fields like name,Contactname,country,state,city all fields
 

Here i using this code for searching one fields:
 
 Collapse | Copy Code
TypeScript
@Html.TextBox("Branch_Name", ViewBag.branch_NameFilter as string, new { @class = "form-control control-text" })                           @Html.ValidationMessageFor(model => model[0].Branch_Name)
 

i use this code for searching single field.

4 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    you can use  Convert.ToDateTime() function to change in respective format

    0
  • 0
    sorry please ignore my answer, this was meant for some other post.

    for your post, i suggest, use text boxes at top of grid and accept input. your search can be dynamic so any change can populate grid below. I achieve all these using AngularJS
    0
  • 0
    Thanks for reply can you explain mein detail
    0
  • 0
    i can share with you with angularJS implementation, but please let me know do you know Angular JS or if not are you interested to implement that?
    0