Next button does not show sorted order

Next button does not show sorted order

Nico90Nico90 Posts: 18Questions: 7Answers: 0
edited March 2018 in Free community support

Hello everyone,

I have a Datatable, every row has an action button where I can press edit, it opens a popup window where I can modify records and press next to see next row information data.

If I make a test and I sort for a column, for example name desc and then i press edit and next button, the records are not displayed like I sorted (name desc) but as default.

Is there a way that allows me to display data with next button like I sorted?

Thanks,

Nico

Answers

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

    Without seeing the code, are you doing a draw() after the order change, with 'false' as the parameter?

  • Nico90Nico90 Posts: 18Questions: 7Answers: 0
    edited March 2018

    Hi @colin,

    thanks for your answer, as I know we are now using ajax to load data and js and mysql. Could you pls provide me an example about what you mean?

    Thanks,

    Nico

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

    Hi Nico,

    Here's examples of Ajax data loads, and here to draw(). If it'nos working, it would probably be best if you could post a live example of your code demonstrating the problem.

    Cheers,

    Colin

This discussion has been closed.