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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:10:47+00:00 2026-05-21T12:10:47+00:00

I am using jqgrid and the toolbar filter. After filtering I want to reload

  • 0

I am using jqgrid and the toolbar filter. After filtering I want to reload the searchoptions in the toolbar filter with:

loadComplete: function() {
mygrid.jqGrid('setColProp','device_nr',{searchoptions: {dataUrl:'filter_jq.php?val=newval'}});
 }

I tried also:

 var str = ":All;1:Dev1;2:Dev2";
 mygrid.jqGrid('setColProp','device_nr',{searchoptions:{value:str}})

But nothing changed.(but I can change the param “sopt”).
Is it possible to change the searchoptions in filter toolbar with setColProp?

This is how it defined in ColModel:

colModel:[{name:'device_nr',index:'device_nr', width:100, stype: 'select',searchoptions:{dataUrl:'filter_jq.php?val=init',sopt:['eq']}}
]
  • 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-21T12:10:48+00:00Added an answer on May 21, 2026 at 12:10 pm

    I am afraid that you will have to manually modify the contain of the corresponding select element of the toolbar. If the name of the corresponding column in the colModel is ‘device_nr’ the id of the corresponding control will be ‘gs_device_nr’ and you should do the following:

    $("#gs_device_nr").html('<option value="">All</option>'+
                            '<option value="1">Dev1</option>'+
                            '<option value="2">Dev1</option>');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building tables using jqGrid with a filter toolbar to let users filter the
I am using jqGrid to render some data. Now I want the ability to
I'm using jqGrid's filterToolbar method to let users quick search/filter the grid data. I'm
hi i am using jqgrid and want to do something like if i set
I am using jqGrid and I don't want the grid to autoload. I only
I am using jqGrid with a search toolbar. Now for several columns I do
I have a jqGrid that is using the toolbar search with some text searches
i am using jqGrid treegrid and i want to format the back color of
jqGrid Edit form invoked using Edit button from top toolbar is defined as grid.navGrid(#grid_toppager,
I'm using jqGrid plugin and I want to add onKeyPress event to each field

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.