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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:49:41+00:00 2026-05-31T16:49:41+00:00

I have a grid on my page. $(#listU05).jqGrid({ url:’u05json.json’, datatype: ‘json’, mtype: ‘POST’, colNames:[

  • 0

I have a grid on my page.

  $("#listU05").jqGrid({
    url:'u05json.json',
    datatype: 'json',
    mtype: 'POST',
    colNames:[
        '<spring:message code="u05.Column.Thema"/>',
        '<spring:message code="u05.Column.SubThema"/>',
        '<spring:message code="u05.Column.status1"/>',
        '<spring:message code="u05.Column.wie"/>',
        '<spring:message code="u05.Column.KW"/>',
        '<spring:message code="u05.Column.Jahr"/>',
        '<spring:message code="u05.Column.kampagne"/>',
        '<spring:message code="u05.Column.ergebnis"/>',
        '<spring:message code="u05.Column.B1"/>',
        '<spring:message code="u05.Column.B2"/>',
        '<spring:message code="u05.Column.personal"/>',
        '<spring:message code="u05.Column.qualifikation"/>',
        '<spring:message code="u05.Column.iv"/>',
        '<spring:message code="u05.Column.objekt"/>',
        '<spring:message code="u05.Column.NR"/>',
        '<spring:message code="u05.Column.ObjektArt"/>',
        '<spring:message code="u05.Column.vorname"/>',
        '<spring:message code="u05.Column.name"/>',
        '<spring:message code="u05.Column.Z1"/>',
        '<spring:message code="u05.Column.Z2"/>',
        '<spring:message code="u05.Column.Z3"/>',
        '<spring:message code="u05.Column.Z4"/>',
        '<spring:message code="u05.Column.team"/>'    
    ],
    colModel :[ 
        {name:'Thema', index:'u_05_01.Thema', width:55},
        {name:'SubThema', index:'u_05_01.SubThema', width:55},
        {name:'status1', index:'u_05_01.status1', width:55},
        {name:'wie', index:'u_05_01.wie', width:55},
        {name:'KW', index:'u_05_01.KW', width:55},
        {name:'Jahr', index:'u_05_01.Jahr', width:55},
        {name:'kampagne', index:'u_05_01.kampagne', width:55},
        {name:'ergebnis', index:'u_05_01.ergebnis', width:55},
        {name:'B1', index:'u_05_01.B1', width:55},
        {name:'B2', index:'u_05_01.B2', width:55},
        {name:'personal', index:'u_03.personal', width:55},
        {name:'qualifikation', index:'u_03.qualifikation', width:55},
        {name:'iv', index:'u_03.iv', width:55},
        {name:'objekt', index:'u_05_01.objekt', width:55},
        {name:'NR', index:'u_05_01.NR', width:55},
        {name:'ObjektArt', index:'u_05_01.ObjektArt', width:55},
        {name:'vorname', index:'u_06.vorname', width:55},
        {name:'name', index:'u_06.name', width:55},
        {name:'Z1', index:'u_05_01.Z1', width:55},
        {name:'Z2', index:'u_05_01.Z2', width:55},
        {name:'Z3', index:'u_05_01.Z3', width:55},
        {name:'Z4', index:'u_05_01.Z4', width:55},
        {name:'team', index:'u_05_01.team', width:55}
    ],
    pager: '#pager',
    rowNum:100,
    rowList:[10,50,100],
    sortname: 'u_05_01.Thema',
    sortorder: 'asc',
    viewrecords: true,
    gridview: true,
    height: 400,   
    caption: '<spring:message code="u05.TITLE"/>',
    loadComplete: function(data) {
        setSearchSelect($(this), 'Thema', data, 0);
        setSearchSelect($(this), 'SubThema', data, 1);
        setSearchSelect($(this), 'status1', data, 2);
        setSearchSelect($(this), 'wie', data, 3);
        setSearchSelect($(this), 'KW', data, 4);
        setSearchSelect($(this), 'Jahr', data, 5);
        setSearchSelect($(this), 'kampagne', data, 6);
        setSearchSelect($(this), 'ergebnis', data, 7);
        setSearchSelect($(this), 'B1', data, 8);
        setSearchSelect($(this), 'B2', data, 9);
        setSearchSelect($(this), 'personal', data, 10);
        setSearchSelect($(this), 'qualifikation', data, 11);
        setSearchSelect($(this), 'iv', data, 12);
        setSearchSelect($(this), 'objekt', data, 13);
        setSearchSelect($(this), 'NR', data, 14);
        setSearchSelect($(this), 'ObjektArt', data, 15);
        setSearchSelect($(this), 'vorname', data, 16);
        setSearchSelect($(this), 'name', data, 17);
        setSearchSelect($(this), 'Z1', data, 18);
        setSearchSelect($(this), 'Z2', data, 19);
        setSearchSelect($(this), 'Z3', data, 20);
        setSearchSelect($(this), 'Z4', data, 21);
        setSearchSelect($(this), 'team', data, 22);
        $(this).jqGrid('filterToolbar',{stringResult: true,searchOnEnter : false});
        sortSelects();
    }    
  });  
    jQuery("#listU05").jqGrid('navGrid','#pager',{del:false,add:false,edit:false,search:false});    

After grid is loaded I have nice grid with filterToolbar with selects.
Very good.

Next: we have a button on page. We have to chenge filter select values in button’s onclick.

We try to make it such way:

$(".testButton1").click(
    function() {
        $("#listU05").setColProp('Thema',
                    {
                        stype: 'select',
                        searchoptions: {
                            value:'a:a',
                            sopt:['eq']
                        }
                    }
        );
            $("#listU05").filterToolbar({stringResult: true,searchOnEnter : false});
    })

But after clicking on the button we have old values in the select.
What should we write to dinamically change filter’s select?
Is it possible with JSON tables?

Thanks a lot.

  • 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-31T16:49:42+00:00Added an answer on May 31, 2026 at 4:49 pm

    The method filterToolbar has no special interface to update (rebuild) the selects based on current (modified) values in searchoptions. So if you hate to rebuild the select manually inside of $(".testButton1").click event handle after you change value of searchoptions in the corresponding column. The id of the select or other input elements of the searching toolbar are generated based on the name property of the corresponding column. The id has the prefix "gs_". For example if you change searchoptions.value of the 'Thema' column you have to update the options of the select with id 'gs_Thema'.

    For example

    $(".testButton1").click(function () {
        $("#listU05").jqGrid('setColProp', 'Thema', {
            stype: 'select',
            searchoptions: {
                value:':Any;val:Text',
                sopt:['eq']
            }
        });
        $("#gs_Thema").html('<option value="">Any</option><option value="val">Text</option>');
    });
    

    I used “Any” value to allow user to select data unfiltered by the column.

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

Sidebar

Related Questions

I have grid in my ASP.NET page (actualy it's Telerik RadGrid). There is GridButtonColumn
I have a grid view on my page and I want to export it
I have a grid view in my main page and I display some data
I have a grid made using slickgrid on a html page. I want to
I have a page with a Grid on it. Based on the selection of
I have view page with both detailview and gridview the grid view should be
I have a JavaScript based page where a grid displays all the data for
I have a page which contains a dynamically generated grid, where a user can
I currently have a product view page that contains an MVCContrib HTML Grid with
I have telerik grid on my page. But it working not correctly. Problem: when

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.