Use in Metronic Dashboard buggy?

Use in Metronic Dashboard buggy?

heohniheohni Posts: 2Questions: 1Answers: 0

Hi,

I try to use this dashboard and the re-order datatable:
http://keenthemes.com/preview/metronic/theme/admin_1/table_datatables_rowreorder.html

It seems to me that the dashboard example is already buggy?
As I can drag a row, but it jumps back to its position after release?

Can you please confirm if it's buggy or if I miss here something?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,833Questions: 1Answers: 10,518 Site admin

    RowReorder uses a data swap method. It does not just move tr DOM elements, but rather rewrites the data.

    The example on that linked page is really a poor one to be honest. To see RowReorder working you'd really need different data in the column where the data is being modified. See this example.

    Allan

  • heohniheohni Posts: 2Questions: 1Answers: 0

    I know this example.
    What do you mean by "different data"?

  • allanallan Posts: 63,833Questions: 1Answers: 10,518 Site admin
    Answer ✓

    In the example you linked to the data in the first column is all the same, so it isn't as easy to see what RowReorder is doing.

This discussion has been closed.