Sort DataTable Programmatically

UI Components for React
Post Reply
peaverok
Posts: 6
Joined: 05 Jul 2019, 23:11

25 Jul 2019, 16:49

How do I sort the datatable programmatically? I can see where I can set the sortField and sortOrder but those are just the default. How do I resort the table programmatically?

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

10 Sep 2019, 14:03

I think you can use this.dt.filter method. Please see doc; https://www.primefaces.org/primereact/#/datatable

Code: Select all

value: the filter value
field: the filter field
mode: "startsWith", "contains", "endsWidth", "equals", "notEquals", "in" and "custom".
Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests