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

  • Home
  • SEARCH
  • 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 8937047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:20:41+00:00 2026-06-15T10:20:41+00:00

I have a simple grid with the following options: jQuery(#mygrid).jqGrid({ url: ‘dataurl.htm’, datatype: ‘json’,

  • 0

I have a simple grid with the following options:

jQuery("#mygrid").jqGrid({
   url: 'dataurl.htm',
   datatype: 'json',
   ajaxSelectOptions: { cache: false }
   ...
   colModel: [
    { name: 'foo', index: 'foo', width: 25, stype: 'select', searchoptions:{ sopt:       
     ['eq'], dataUrl: 'someurl.htm?columnName=foo'}}
    ]
});

However, when I call $("#mygrid").trigger("reloadGrid"); it only loads the data for the table from dataurl.htm but it does not load the data for the foo column from the some url.htm link.

I’ve read couple of questions like these on SO and it was suggested to have ajaxSelectOptions: { cache: false } but this is not working for me.

The someurl.htm returns <select> <option val=''>something</option></select>

  • 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-06-15T10:20:41+00:00Added an answer on June 15, 2026 at 10:20 am

    It’s absolutely correct question! The current implementation of jqGrid has only toggleToolbar method which can hide the toolbar, but the toolbar itself will be created once. So all properties of the toolbar stay unchanged the whole time.

    To fix the problem I wrote small additional method destroyFilterToolbar which is pretty simple:

    $.jgrid.extend({
        destroyFilterToolbar: function () {
            "use strict";
            return this.each(function () {
                if (!this.ftoolbar) {
                    return;
                }
                this.triggerToolbar = null;
                this.clearToolbar = null;
                this.toggleToolbar = null;
                this.ftoolbar = false;
                $(this.grid.hDiv).find("table thead tr.ui-search-toolbar").remove();
            });
        }
    });
    

    The demo uses the method. One can recreate searching toolbar after changing of properties of some columns. In the code below one can change the language of some texts from the searching toolbar:

    enter image description here

    The corresponding code is below:

    $("#recreateSearchingToolbar").change(function () {
        var language = $(this).val();
    
        // destroy searching toolbar
        $grid.jqGrid("destroyFilterToolbar");
    
        // set some searching options
        $grid.jqGrid("setColProp", "closed",
            language === "de" ?
                    {searchoptions: {value: ":Beliebig;true:Ja;false:Nein"}} :
                    {searchoptions: {value: ":Any;true:Yes;false:No"}});
        $grid.jqGrid("setColProp", "ship_via",
            language === "de" ?
                    {searchoptions: {value: ":Beliebig;FE:FedEx;TN:TNT;IN:Intim"}} :
                    {searchoptions: {value: ":Any;FE:FedEx;TN:TNT;IN:Intim"}});
    
        // create new searching toolbar with nes options
        $grid.jqGrid("filterToolbar", {stringResult: true, defaultSearch: "cn"});
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple grid with the following code (along with the code of
I have a simple xaml control with the following Grid Row definition: <Grid.RowDefinitions> <RowDefinition
I have a simple user control with the following content: <Grid x:Name=LayoutRoot> <Button x:Name=btnOpenGenericPage
Say I have a very simple WPF grid (6 rows x 6 columns) defined
I have a simple in-line edit in my grid, and I want to commit
I have a simple question. Can a grid automatically resize the objects in it
I have made a simple Line Chart: Which is showing 4 grid-lines at points
I have a grid view that has two simple columns, a report number and
In simple game, where map (terrain) is divided in grid cell I have soldier
From the documentation for ggplot2's geom_tile() function, we have the following simple plot: #

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.