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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:28:45+00:00 2026-05-18T06:28:45+00:00

I have a grid with the following definition. Everything is working fine with the

  • 0

I have a grid with the following definition. Everything is working fine with the grid as is.

$("#grid").jqGrid({
    url:'report_data.php',
    datatype: 'json',
    mtype: 'POST',
    colNames:['Type','Term','Number','Visits','Calls','Unique','Avg. Duration',
              'Conversion Rate'],
    colModel :[{"index":"keyword_type","name":"Type","width":90},
               {"index":"keyword","name":"Term","width":170},
               {"index":"phone_number","name":"Number","width":100},
               {"index":"visits","name":"Visits","width":80},
               {"index":"calls","name":"Calls","width":70},
               {"index":"unique_calls","name":"Unique","width":70},
               {"index":"avg_duration","name":"Avg. Duration"},
               {"index":"conversion_rate","name":"Conversion Rate","width":80}],
    rowNum:100,
    rowList:[25,50,100,200,500],
    sortname: 'keyword_type',
    sortorder: 'desc',
    viewrecords: true,
    height: '470px',
    width: 'auto',
    loadui: 'block',
    postData: {"keyword_set":"140","display_type":"direct"}
});

There are links on the page to filter the grid. When the user clicks a link I set some grid params and reload the grid using:

var param_string = "filter=keyword&type=ppc";
$('#grid').setGridParam({url:'report_data.php',
                         postData:param_string}).trigger("reloadGrid"); 

The grid reloads fine with the new data, however, the columns are no longer sortable. I can see the data getting sent to the server but it no longer includes the ‘sidx’ or ‘sord’ parameters. Sorting worked fine before triggering the reload.

Any ideas on how to get the sort parameters passed again after reloading the grid?

Thanks,
Dan

  • 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-18T06:28:46+00:00Added an answer on May 18, 2026 at 6:28 am

    You should use another syntax for the postData parameter:

    $('#grid').setGridParam({url:'report_data.php',
                             postData:{filter:"keyword",type:"ppc"}
                            }).trigger("reloadGrid");
    

    Your current syntax postData:"filter=keyword&type=ppc" overwrite all other parameters (page, rows, sidx, sord and so on) and the server can not make correct sorting of the data.

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

Sidebar

Related Questions

I have the following call to load a grid: $(#searchlist).jqGrid({ url:'./searchlibrary', datatype: 'json', mtype:
I have the following grid defined: $(#list).jqGrid({ url:'listOpenQueryInXML.php', datatype: 'xml', colNames:['Id','name1', 'name2', 'status', 'type'],
We have a grid with datatype json. We have the following custom formatter: function
Suppose I have the following (shortened for simplicity): jQuery(#grid).jqGrid({ ... ondblClickRow: function() { //
I have a simple xaml control with the following Grid Row definition: <Grid.RowDefinitions> <RowDefinition
I have the following definition of a LibraryStack: <s:LibraryStack Name=TaggingContainer Margin=20 Grid.Row=1 Grid.ColumnSpan=2 AllowDrop=True
I have the following definition for a DatePicker : <sdk:DatePicker x:Name=dtpStartDate Grid.Row=4 Grid.Column=1 SelectedDateFormat=Short
I have a grid panel in ExtJS 4 with the following features: extend :
I have a Grid with 2 columns separated by a GridSplitter using the following
I have a bunch of coordinates in my table grid with the following schema

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.