Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 792085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:56:18+00:00 2026-05-14T21:56:18+00:00

I am wondering if it is possible with JqGrid advanced search to display multiple

  • 0

I am wondering if it is possible with JqGrid advanced search to display multiple text boxes for some of the fields I want to search on.
For example, if I have a ‘Phone Number’ field, I want to be able to visualize 2 boxes, one for area code and the other for the rest of the phone number.
Then after pressing ‘Find’ I want to able to get the two values and merge them or do something else.

Any help would be appreciated,

Thanks,

fromano2802

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:56:18+00:00Added an answer on May 14, 2026 at 9:56 pm

    You have an interesting question, but I suggest you to make input of the phone number more nice and user friendly. There are a nice jQuery “Masked Input” Plugin. It allow you display a mask inside a input field, something like “(_) _-____” and allow only input of numbers. To see life what I mean open the page http://digitalbush.com/projects/masked-input-plugin/#demo, set focus to the Phone field and try to type something. Is it not nice!

    To do this inside of JqGrid advanced search dialog you should do following

    1. Download jquery.maskedinput-1.2.2.js or/and jquery.maskedinput-1.2.2.min.js from http://digitalbush.com/projects/masked-input-plugin/.
    2. Insert one from this JavaScript files in you web page.
    3. Add to the definition of your ‘Phone Number’ column in colModel searchoptions block like following

      { name: ‘PhoneNumber’, width: 83, index: ‘PhoneNumber’, align: ‘center’,
      searchoptions: {
      dataInit: function (elem) {
      $(elem).mask(“(999) 999-9999”);
      }
      }
      }

    It’s all. Now just open “Advanced Search dialog”, choose ‘Phone Number’ field and set focus in the input field. The function dataInit described in the jqGrid documentation under http://www.trirand.com/jqgridwiki/doku.php?id=wiki:search_config&s%5B%5D=datainita and in http://www.trirand.com/jqgridwiki/doku.php?id=wiki:common_rules&s%5B%5D=datainit.

    By the way you can receive the same masked input during data editing (both form edit and inline edit). Just define the same editoption like searchoptions:

    { name: 'PhoneNumber', width: 83, index: 'PhoneNumber', align: 'center',
      editoptions: {
        dataInit: function (elem) {
          $(elem).mask("(999) 999-9999");
        }
      },
      searchoptions: {
        dataInit: function (elem) {
          $(elem).mask("(999) 999-9999");
        }
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jqgrid that's functionning very well. I was wondering is it possible
I am wondering it is possible to have multiple GridFS in Mongo? The reason
I'm wondering is it possible to hot develop spring application. For example. In Play
I have not worked so much with files: I am wondering about possible issues
I wondering if it possible to have a preprocessor OR or AND statement? I
I am wondering is it possible to have a list box that has custom
I was wondering if its possible to have Jira update a ticket's status to
I'm wondering if its possible to join together IEnumerable's. Basically I have a bunch
just wondering if its possible to have a hidden parent and a visible child
I am wondering if its possible to have a an (||)or or (&&)and operator

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.