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

The Archive Base Latest Questions

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

I am using JQGrid to get the date from the RESTFul web services that

  • 0

I am using JQGrid to get the date from the RESTFul web services that i have created on the server

now when i try to hit the url http://www.example.com/event/getAllInfo , the jqGrid by default appends _search=false&nd=1332922405416&rows=20&page=1&sidx=&sord=asc to the rest url and because of that my server don’t fetch the data back , so

1) how can i remove it
2) and put it back in a url with in such a way that it looks
http://www.example.com/event/getAllInfo/false/1332922405416/20/1/0/asc

i can create the url at the server as above but how can i make the jQGrid to use it from RESTful rather then from query string

here is my code

jQuery("#list4").jqGrid({
        url:"http://www.example.com/event/getAllInfo",
        datatype: "json",
        restful:  true,
        mtype: 'GET',
        height: 250,
        colNames:['id','title', 'description', 'create date','json','img','video'],
        colModel:[
            {name:'id',index:'e_info_id', width:60, sorttype:"int"},
            {name:'title',index:'e_meta_title', width:90, sorttype:"date"},
            {name:'name',index:'e_meta_description', width:100},
            {name:'amount',index:'e_info_create_date', width:80, },
            {name:'tax',index:'e_meta_JSON', width:80},     
            {name:'total',index:'e_meta_img', width:80},        
            {name:'note',index:'e_meta_video', width:150}       
        ],
        multiselect: true,
        caption: "Manipulating Array Data"
    });
  • 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-31T22:28:14+00:00Added an answer on May 31, 2026 at 10:28 pm

    First of all the RESTFul web services don’t mean that you can’t send additional parameters to the server. The main idea only to use URL to identify the resource and use different HTTP verbs (request methods) for different operations.

    Only if you don’t want or don’t can to implement server side paging, sorting and filtering of data you can remove any additional parameters from the URL which will be used. Do do this you can just add

    postData: ""
    

    as additional parameter. In the case you should use loadonce: true or at least rowNum: 10000 (or some other large value). In the case will be very important to use gridview: true as additional parameter (I recommend to use the parameter always). The server should return all the data. The data should be sorted if you would use sortname parameter.

    I would recommend you to add Cache-Control: private, max-age=0 to the header of the server response (see here and here).

    UPDATED: I recommend you to read the answer on the question which you ask about the encoding of the URL. Like I wrote you before in the comment I think that the part _search=false&rows=20&page=1&sidx=&sord=asc is not belong to resource. It’s mostly an additional options or properties of the request. You can place the information in the HTTP header inside of loadBeforeSend callback (see here an example), but I don’t think that it will be good idea and will simplify the usage of the RESTfull services which you develop. I would recommend you just remove nd=1332922405416 with respect of prmNames: {nd: null} jqGrid option and use Cache-Control to control the caching or responses.

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

Sidebar

Related Questions

I have a jqGrid where I get data at once from server (java) in
I'm using jqgrid on clienside for a financial web app where rows get added
I'm writing a MVC website and using jqGrid. I have managed to get it
Greetings, I have a problem using jqgrid and jquery tab (I am coding in
I have a asp.net webforms page in which I'm using the jqGrid component. The
I have a project in ASP.NET MVC1 using VB.NET controlers and JqGrid. it works
I have a jqgrid with data loading from an xml stream (handled by django
I'm using jqGrid for a JIRA plugin and have included the jquery and jqgrid
So I'm using jqGrid with my mvc.net / Ling2Sql prototype site that I'm making
Hi I'm using jqgrid to show some information in a grid. But I have

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.