jQWidgets Forums

jQuery UI Widgets Forums Grid Grid float cells sort problem

This topic contains 2 replies, has 2 voices, and was last updated by  Peter Stoev 11 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Grid float cells sort problem #32956

    andy8
    Participant

    Hello all,

    I have a grid with cells formatted as floating numbers, populated via array (all numbers, no strings here). Some columns show a very strange sorting behavior, like

    -29.07872
    -31.72483
    -34.86176
    -54.39821
    -6.42013
    -7.00634
    -7.24155

    The fragments of my grid settings:

    columns:[{ text: 'Max DD', datafield: 'a5',cellsalign: 'right', width: 70, cellsformat: 'F5' },{...},{...}]...
    source: corrAdapter,
    editable: true,
    sortable: true,
    columnsresize: true,
    theme: theme,

    What am I missing here? Actually, sorting works fine on other columns with value ranges <1, but not on that one.

    Thanks

    Grid float cells sort problem #32957

    andy8
    Participant

    Got it fixed – data type “float” in the data adapter was missing.

    What will happen if we try to render a string in a column of “float” type? Will it revert to a string type for the whole column?

    Thanks

    Grid float cells sort problem #32960

    Peter Stoev
    Keymaster

    Hi andy8,

    You can render anything in a column, but you can have only one data type per column. Otherwise, you will not be able to correctly sort/filter the data column.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.