Paging and Sorting By Post Request (Server Side)

Posted by: n8milk on 12 June 2020, 3:00 am EST

    • Post Options:
    • Link

    Posted 12 June 2020, 3:00 am EST

    Hello. I’m JK.

    I’m stuck in a problem.

    I use Wijmo Grid and other pagination UI (buefy) in Vue.

    As I know that wijmo grid support sort function in automatic.

    But it needs all rows(ex. 100,000). Not rows of current page(ex. 10)

    So I try to change sorting grid rows by server side. Finally, I found ‘ODataCollectionView’. But it seems to work by ‘Get Request’.

    Could you explain to me how to sort and pagination by Post Request?

    (how to set option’s and post request parameters)

    Thank you.

  • Posted 15 June 2020, 12:57 am EST

    Hi JK,

    The ODataCollectionView sorts, filter or page the data only with GET request. We cannot change this.

    Also, in order to use ODataCollectionView, your server needs to implemented in OData (https://www.odata.org/). If your server is not implemented with OData, then I would suggest you use the ServerCollectionView class. This class is not shipped with our original Wijmo package, rather it is implemented as per your need.

    Sample: https://demos.wijmo.com/5/PureJS/ServerCollectionView/ServerCollectionView/

    Source code: https://demos.wijmo.com/5/SampleExplorer/SampleExplorer/Sample/ServerCollectionView/PureJS/Code

    Regards,

    Ashwin

  • Posted 15 June 2020, 8:16 pm EST

    Thanks a lot, Ashwin.

    It will be helpful for me :slight_smile:

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels