jQWidgets Forums

jQuery UI Widgets Forums Grid Multisort on single column not working

This topic contains 1 reply, has 2 voices, and was last updated by  admin 4 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Multisort on single column not working #112973

    robf
    Participant

    Using jquery version JQWIDGETS 9.x

    I have a jqxgrid in sortmode of many. I am able to sort on multiple columns.

    However, when I sort on a single column – e.g. a type float, the values are not sorted in the correct order. Just recently noticed this.
    The “gap” in the sorting are for values that are undefined, but I would believe those would be grouped together.

    datafield:
    {
    	name: "par",
    	type: "float"
    },
    
    column:
    {
    	text: "Par",
    	dataField: "par",
    	cellsformat: "f2",
    	cellsalign: "right",
    	width: 130
    },
    
    getSortInfo:
    
    {sortcolumns: Array(1), sortcolumn: "par", sortdirection: {…}}
    sortcolumn: "par"
    sortcolumns: Array(1)
    	ascending: true
    	dataField: "par"
    sortdirection:
    	ascending: true
    	descending: false

    In sortmode one the sort appears ok.

    The accompanying pic shows that GAP when sorting the PAR field in ascending order.

    https://ibb.co/kXdBLcP

    Please assist.
    Thank you.

    Multisort on single column not working #113003

    admin
    Keymaster

    Hi robf,

    Could you provide dummy data to reproduce this? Have you tried setting the “type” to “number”?

    Best regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.