Marketplace Data Grid - how to define sort

I have not managed to use this particular data grid sortBy component. I tried looking through the documentation by doesn’t give any examples of what I should write there.

Any pointers will be more appreciated.

A follow up question - is there an “onSort” event handler? Currently there’s a “onFilter”, but not “onSort” as far as I can tell.

The reason I am asking is that say I have a set of results beyond 100, say 120. And user then sort by “name”, then you would expect to re-fetch the data from the database with the sort, otherwise it’s just sorting from within the dataset that’s currently loaded.

Hello, @Bob_Leung.

I have passed this question on to our team. We need to wait a bit, sorry for the inconvenience.

Regards, Nikita.

There is a bug. I have created internal ticket and we will notify you when it will be fixed.

Thanks for informing us about the issue.

Regards, Dima

1 Like