Problems ColReorder

Problems ColReorder

tumbero_xtumbero_x Posts: 63Questions: 0Answers: 0
edited November 2012 in General
Hello friends!
my problem is that when wanting to drag a column, only changes place the header and not the body, I appreciate any help you can give me
Greetings!

Replies

  • allanallan Posts: 63,532Questions: 1Answers: 10,475 Site admin
    A link to a page showing the problem would be useful please.

    Allan
  • tumbero_xtumbero_x Posts: 63Questions: 0Answers: 0
    Hi Allan Thanks for answering you pass the link
    http://sincroniavirtual.no-ip.org/1/buscar_ocompra_minmax.php
  • allanallan Posts: 63,532Questions: 1Answers: 10,475 Site admin
    As you are using server-side processing, you need to use mData (mDataProp at the server-side), and I'd suggest using objects rather than arrays to keep your sanity :-). There is an example script here: https://github.com/DataTables/DataTables/blob/master/examples/server_side/scripts/objects.php .

    The reason for this is that DataTables shuffles the columns (as you would expect for a reorder), but the server-side script isn't taking the column ordering into account.

    Allan
  • tumbero_xtumbero_x Posts: 63Questions: 0Answers: 0
    Perfect! Now I try
    Many Thanks Allan
    regards
This discussion has been closed.