Disable auto sort on Datatable when data is updated.

Disable auto sort on Datatable when data is updated.

natashanatasha Posts: 1Questions: 1Answers: 0

Hi :

I have a column which is sorted desc in the data table configuration.

However the data is this table column changes as the user updates the data in the table.This is causing the rows to move as the user is changing the data because of the default sort.

Is there a way to disable this auto-sort ? I only want to sort the data when the user clicks on the column link and not auto sort when the data changes.

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @natasha ,

    You can use order to define the initial ordering of the table - just set it to [] and nothing will be ordered until the user clicks on a column.

    Cheers,

    Colin

This discussion has been closed.