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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:28:12+00:00 2026-05-20T18:28:12+00:00

i am using a toolbar filter (mostly select dropdowns) and multiple advanced filter. This

  • 0

i am using a toolbar filter (mostly select dropdowns) and multiple advanced filter. This works fine except if i programatically set a bunch of filters and then load up the dropdown it takes the first entry and converts the textbox to a dropdown and only shows me “Equals” in the operation dropdown.

The issue is all other items will still show textboxes. here is a picture:

enter image description here

you see how the first row has a dropdown but the other rows are textboxes. If this was working properly they all would be textboxes. Also, the operation default is not defaulting to “Equals”

Here is my code:

On startup i programatically set some filters:

var myfilter = { groupOp: "AND", rules: [] };
myfilter.rules.push({ field: "Status", op: "ne", data: "Completed" });
myfilter.rules.push({ field: "Status", op: "ne", data: "On Hold" });
myfilter.rules.push({ field: "Status", op: "ne", data: "Cancelled" });


[a bunch of code to initialize grid . . .]   
postData: { filters: JSON.stringify(myfilter) },

Also, here is the colModel for the status column:

{ name: "Status", index: "Status", width: 55, stype: 'select', searchoptions: { sopt: ['eq'], dataUrl: "/Project/StatusGetSelectData1"} },

then all i do i click on the Search button (i have multiplesearch: true)

So because the “Status” column is stype: “select” it seems to only show me the “equal” operator in the operator dropdown (which defeats the purpose of advance filter) and on the first item on the advance filter converts to a select with the items from the select but:

  1. It doesn’t default the value of the operation to “equal” as you can see it keeps it blank
  2. The other filters below DONT convert to dropdown (they stay textboxes) and also don’t default to equals

Update:

One problem is fixed as i didn’t have ‘ne’ in the sopts setting for this field. i now see this:

enter image description here

Also, Oleg below asked to see the output of DataUrl:. Oleg, all i do is get the list of values and shove it into the dropdown view (see below)

<select>
<option value="">(None)</option>
<%
foreach (var pair in Model)
{
    %><option value="<%= pair.Value %>"><%= pair.Value %></option>
<%    
}
%></select>

Update:

This is now fixed in jqGrid 4.0

  • 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-20T18:28:12+00:00Added an answer on May 20, 2026 at 6:28 pm

    One clear error in your code: you use op: "ne" in the filter but define only 'eq' as the only permitted compare operation searchoptions: { sopt: ['eq'], ...}. I recommend you to use the full list of operations in sopt and just set ‘eq’ as the first element of the sopt array.

    UPDATED: I can confirm that there is the bug in the jquery.searchFilter.js module of jqGrid. Here is the code which can be used to reproduce the problem which you also has. I can not find some quick bug fix. Like I previously wrote you the jquery.searchFilter.js module will be replaced on the new written module grid.filter.js in the next version of jqGrid. How you can see here the problem which you describe in your question not exist in the new module. So I am not sure that the old module will be ever fixed. The main problem that the old module uses some functions like jQuery.clone which are buggy in jQuery 1.4.x and 1.5.x and the bugs will be probably fixed in the version 1.6 only. So to fix some problems existing in jquery.searchFilter.js module one have to rewrite many its parts.

    On the other side during the tests I found at least 5 bugs in the new module which I will report to trirand later. So you should just take a patience and wait for the next release of jqGrid or at least till the version on https://github.com/tonytomov/jqGrid/ will be more stable.

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

Sidebar

Related Questions

In Eclipse, its easy to specify buttons for your toolbar using the ActionSets extension
How do I create a toolbar for Excel using an XLA document?
Using JDeveloper , I started developing a set of web pages for a project
Using online interfaces to a version control system is a nice way to have
Using PyObjC , you can use Python to write Cocoa applications for OS X.
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters
Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button

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.