jQuery UI Widgets Forums Grid Row number column Sort

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 2 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Row number column Sort #112223

    dan123
    Participant

    Hi i have this jqxgrid using the Row number column demo.

    I want to have the row number column to be able to sort ascending/descending, but not sure how to achieve this since there is no datafield tied to this column. I would appreciate if there is a workaround provided.

    Here is my jsfiddle:
    http://jsfiddle.net/k3x1w78b/

    Row number column Sort #112234

    Martin
    Participant

    Hello dan123,

    You could not sort by the row number column in that way because it uses cellsrenderer but that is not the value of the cell.
    So instead, I would suggest you to add a rowId field to the data.
    Please, take a look at the following Example.

    Best Regards,
    Martin Yotov

    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.