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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:20:27+00:00 2026-06-05T10:20:27+00:00

I am using a grid with loadOnce:true in order to have only one query

  • 0

I am using a grid with loadOnce:true in order to have only one query to the server.
The data is sorted on server side (multi-column sorting). Sorting is disabled on client side.

Before activating the grouping feature, navigation was working correctly.

By activating the grouping feature, the first page is OK. But when I go to the next page with the navigation button, the data is sorted on client-side according to the grouping column (even with groupDataSorted:true).

rowTotal: 10000,
gridview: true,
scroll: false, 
loadonce: true,

pgbuttons: true,
pginput: true,
rowNum: 100,
rowList: '',
datatype: 'json',
mtype: 'GET',

grouping: true,
groupingView : { 
      groupField : ['prodNo'],
      groupSummary: [true],
      groupColumnShow: [false],           
      groupText: ['({1})'],
      showSummaryOnHide: true,
      groupDataSorted : true,
      groupCollapse: false
    },
jsonReader: {root: 'list', userdata : 'list'},
url:'...'

My case is a bit special because I am sorting the data on server side according to a ‘name’ and ‘date’ columns, but grouping rows according to another ‘prodNo’ column.
However I do not understand why the sorting is done on page navigation.

Is there a way to disable this client-side sorting on page navigation ?

thanks in advance

  • 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-06-05T10:20:28+00:00Added an answer on June 5, 2026 at 10:20 am

    If you use loadonce: true and the user click on the “Next Page” button the local data will be resorted by grindexes (it’s the value of index property of the column which you use for grouping in groupField). So the easiest way to fix the problem in your case will be to implement custom sorting in the prodNo column.

    You can try first to add to the definition of ‘prodNo’ column the custom sorting

    sorttype: function () {
        return 1; // any constant value
    }
    

    The function sorttype will be called during sorting of local data. If it return the same results like in above example then all the data will be interpreted as the same and I hope that no additional sorting will be take place.

    If the approach will not work because of some reason you can implement another sorting

    sorttype: function (cellValus, rowData) {
        ...
    }
    

    For example if you want that local data will be sorted based on other columns ‘name’ and ‘date’ you can return from the sorttype in the ‘prodNo’ column the value like

    sorttype: function (cellValus, rowData) {
        // probably the data need be converted in the sortable form yyyy-mm-dd
        return rowData.name + '_' + rowData.data;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this sample MVC project using jQuery grid. There is only one problem
I am using two jqgrids in one page. second grid i used loadonce: true
I'm using jQuery Grid 3.7.2 to load data in 'loadonce' mode, i.e. jqGrid takes
Is it possible to do a row/column span in UniformGrid? Using Grid attached properties
We're using Infragistics grid (most probably, we'll have 8.2 version at the end) and
I'm trying to display set of data using jq grid. For that I used
My goal is to inline edit cells in a data grid using JQuery and
I am using data grid view in Windows Form standalone application to display items
I'm using jqGrid's filterToolbar method to let users quick search/filter the grid data. I'm
I am using jqGrid and I don't want the grid to autoload. I only

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.