komarovalexander / ka-table

Lightweight MIT React Table component with Sorting, Filtering, Grouping, Virtualization, Editing and many more
http://ka-table.com
MIT License
769 stars 56 forks source link

sort prop in ka-table not supporting server-side sorting #391

Closed SupriyaK06 closed 6 months ago

SupriyaK06 commented 6 months ago

Hi Team,

I have been spending few hours figuring about sort prop in ka-table

As I read in few documentation sort prop in ka-table supports only client-side sorting?

I have been trying on sort prop-a handleSortChange function is triggered this function updates the sortfield and sortDirection state which in turn fetches the data from API but on using this sort prop 1st on clicking the sortable column 1st client side sorting is happening followed but server side sorting how can I disable the client side sorting and only enable sever side sort.

hoping for a quick response Thank you

komarovalexander commented 6 months ago

Hi,there is singleRemote mode https://komarovalexander.github.io/ka-table/#/sorting-modes

SupriyaK06 commented 6 months ago

hey,

thanks for the response but if having the sorting mode as singleRemote then even the sort prop does not work? because having the sorting mode as singleRemote its not even triggering the handleSortChange function which is associated with sort prop

hoping for a quick response Thank you

komarovalexander commented 6 months ago

https://github.com/komarovalexander/ka-table/discussions/392