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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:40:41+00:00 2026-05-27T02:40:41+00:00

I tried code below to pass filter to url which invokes jqgrid. jqGrid still

  • 0

I tried code below to pass filter to url which invokes jqgrid. jqGrid still shows all rows, passed filter is not passed to url to retrieve data form server.
How to force jqGrid to filter by filter passed in query string ?

window.open( '/Grid?filters=' + encodeURIComponent(
  '{"groupOp":"AND","rules":[{"field":"Name","op":"cn","data":"John"}' )); 
  • 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-27T02:40:42+00:00Added an answer on May 27, 2026 at 2:40 am

    You can parse window.location.href and get all parameters which you need. If the URL contains the parameter which you need you can decode it with respect of decodeURIComponent and use like you as need.

    The following code can be used for tests. It demonstrate how to decode filters parameter.

    if (window.location.href.indexOf('?') < 0) {
        // the code will open the current HTML page with additional
        // parameter "filters" and reopen the same page with the parameters
        window.location = window.location.href + '?' +
            $.param({
                filters: JSON.stringify({
                    groupOp: "AND",
                    rules: [
                        {field: "Name", op: "cn", data: "John Smith"}
                    ]
                })
            });
    } else {
        // decode URL parameters and place in the as properties in the
        // object "parameters":
        var namedParameters = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'),
            parameters = {},
            nameAndValue,
            i;
        for (i = 0; i < namedParameters.length; i += 1) {
            nameAndValue = namedParameters[i].split('=');
            parameters[nameAndValue[0]] = decodeURIComponent(nameAndValue[1]);
            if (nameAndValue[0] === "filters") {
                // display the data from the "filters" parameter
                var myFilters = $.parseJSON(decodeURIComponent(nameAndValue[1]));
                alert(myFilters.rules[0].data);
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried rectifying the code below. But I am not able to find
In the code below I tried in two ways to access the parent version
I tried accessing web for xml parsing using the code below: System.Uri proxy =
I am just learning Perl's comparison operators. I tried the below code :- $foo=291;
I want to open an xlsx file, I have tried the below code,but neither
I tried the following code in LINQPad and got the results given below: List<string>
Below is my code, i tried to open my excel file in my c#
i have tried this code to redirect a php page.but it s not working
In my code below, I want to be able to pass in prev or
I tried code below in .NET 3.5 but mi is null. How to call

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.