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 7081745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:57:34+00:00 2026-05-28T06:57:34+00:00

I have a jqGrid and when I do a seach I get a small

  • 0

I have a jqGrid and when I do a seach I get a small dialog. There is a Add button at the top which has a “+” sign to add rows for advanced searching. Is it possible to change this button text to a plain old school “Add” without hacking into js library. Is there any way by writing an extendion? Is so how?

<input type="button" value="+" title="Add rule" class="add-rule ui-add">
  • 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-28T06:57:34+00:00Added an answer on May 28, 2026 at 6:57 am

    The method navGrid has some parameters which can be used to change the look of navigator buttons. I used additionally toppager: true option of jqGrid and cloneToTop: true option of navGrid for the case that one uses top pager. If one just create the navigator buttons with respect of the call

    $grid.jqGrid('navGrid', '#pager', {
        cloneToTop: true,
        view: true,
        add: true,
        edit: true,
        addtext: 'Add',
        edittext: 'Edit',
        deltext: 'Delete',
        searchtext: 'Search',
        refreshtext: 'Reload',
        viewtext: 'View'
    });
    

    one will see the results like

    enter image description here

    I used rowNum: 2 for the tests only to reduce the height of the pictures.

    If I correct understand you, you want to have pure text buttons. To remove the icons from the buttons one can execute the following additional lines

    var pagerId = 'pager', gridId = $.jgrid.jqID($grid[0].id);
    $('#' + pagerId).find('.navtable span.ui-icon').remove();
    $('#' + gridId + '_toppager').find('.navtable span.ui-icon').remove();
    

    The gridId will be set to 'list'. One need to use $.jgrid.jqID if the grid id could contain meta-characters. The results will be

    enter image description here

    Next step will be to fix right and left the padding or margin of the buttons to show the texts better:

    .ui-jqgrid .ui-jqgrid-pager .navtable .ui-pg-div,
    .ui-jqgrid .ui-jqgrid-toppager .navtable .ui-pg-div {
        padding-right: 3px;
        padding-left: 3px;
    }
    

    The results will be improved to the following

    enter image description here

    Now we need fix the position of the pager. We can do this with respect of

    $('#' + pagerId + '_left').width($('#' + pagerId + ' .navtable').width());
    $('#' + gridId + '_toppager_left').width($('#' + gridId + '_toppager .navtable').width());
    $('#' + pagerId + '_center')[0].style.width='';
    $('#' + gridId + '_toppager_center')[0].style.width='';
    

    and have the following results

    enter image description here

    or remove additionally unused right part of the pager with

    $('#' + pagerId + '_right').remove();
    $('#' + gridId + '_toppager_right').remove();
    

    which places the pager in the middle of the rest place on the pager:

    enter image description here

    In my opinion it’s mostly the matter of taste which look is better. You can see the resulting demo here.

    Alternatively you can do use icons over the text, but place the text under the icons. You can see
    details in the demo which produces the following results:

    enter image description here

    UPDATED: To customize the “Add rule” or “Add group” buttons you can use afterRedraw option:

    afterRedraw: function () {
        $('input.add-rule',this).val('Add new rule');
        $('input.add-group',this).val('Add new rule group');
    }
    

    The demo which use the option produce the searching dialog like the following:

    enter image description here

    (the button “Add group” exist if multipleGroup: true are used and the “Add rule” button exist if multipleSearch: true are used).

    UPDATED 2: One can improve the visibility of the searching dialog if one would use jQuery UI Buttons:

    afterRedraw: function () {
        $('input.add-rule',this).val('Add new rule').button();
        $('input.add-group',this).val('Add new group or rules').button();
        $('input.delete-rule',this).val('Delete rule').button();
        $('input.delete-group',this).val('Delete group').button();
    }
    

    The result dialog can be like the following

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have jqgrid that has 23 headers. It has edit dialog with a form
I have a jqGrid on a page and users can click a button to
I have a jqGrid with which users will select records. A large number of
I have a asp.net webforms page in which I'm using the jqGrid component. The
I am using jqgrid and have simple searching enabled. I am wondering if there
I have been struggling quite a bit to get this JQgrid to work with
I am trying to add a button inside a jqGrid column and to assign
I have a jqgrid and I would add in the navgrid a personal function
I have two questions regarding built-in search feature of JqGrid. How to get all
I have a mvc3 web application which uses jqgrid extensively. I just came to

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.