Author Topic: Can we not show the number display on sort order columns  (Read 1910 times)

joelclark

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 10
    • View Profile
Can we not show the number display on sort order columns
« on: March 27, 2019, 03:08:21 am »
Can we not show the number display on sort order columns?
In the below result set i have 3 coulumns A,B,C and they are sorted by A,C,B where i dont want to see the number's on the coulmn header to say it is sorted by coulumn A first(1) and column C second(2)....
ColumnA1|ColumnB3|CoulumnC2|

Is there a way to supress the display of pq-grid-sort-count as im having around 8 coulmns and with group by being flexible for user creating confusion with sort numbering..

My Code is like below,

       var dataModel = {
            location: "remote",
            method: "GET",
            sortIndx: ["MarketCentre", "Facility", "Date", "AllocationProduct", "SalesRep", "ProducerName", "IsUnPlannedRecord", "BookingNo", "DeliveryNo"],
            sortDir: ["up", "up", "up", "up", "up", "up", "up", "up", "up"],
            getUrl: function () {
                var data;

                // serialize our search criteria
                $("form").serializeArray().map(function (x) {
                    data = data == null ? (x.name + "=" + x.value) : (data + "&" + x.name + "=" + x.value);
                });

                return {
                    // Build API url with search criteria in it
                    url: GS.uris.Allocation.GetJsonResult + "?" + data
                }

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Can we not show the number display on sort order columns
« Reply #1 on: March 27, 2019, 07:32:10 am »
Please set sortModel.number to false.

https://paramquery.com/pro/api#option-sortModel