jQWidgets Forums

jQuery UI Widgets Forums Grid how to set sortdatafield

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • how to set sortdatafield #61235

    Jet
    Participant

    I am working on a grid needing to sort and display tooltips for some specified columns.
    I find that sortdatafield is the value of displayfiled,it makes me sick because the display column name should be diffrient from sort column name to transfer to server side.
    I thought the sortdatafield could be the value of datafield,but the current jqxgrid doesn’t work as my wish.

    I think it is a defect or the jqxgrid needs to improve.

    Any solution can resolve me from this difficulty?

    how to set sortdatafield #61279

    Peter Stoev
    Keymaster

    Hi Jet,

    No, this is not a defect in the Grid. You can sort the data which you see in the Grid. You can’t sort by something which is not visible and we think that is how it should work. If you think that it should work in a different way, then you can implement your own sorting function – we demonstrated that in the Grid’s Sorting Demos.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    how to set sortdatafield #61287

    Jet
    Participant

    hi Peter,

    The custom function of deom demostrate sort in client side.I want to sort in server side,so I need to change the search condition of sortdatafield after clicking the head of column and before sending a request to the server.

    how to set sortdatafield #61291

    Peter Stoev
    Keymaster

    Hi Jet,

    The dataAdapter has function called formatData which allows you to modify the default Grid state variables or add custom variables to your server requests.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.