Custom columns (PHP server-side processing)

Custom columns (PHP server-side processing)

FLOKERFLOKER Posts: 3Questions: 0Answers: 0
edited March 2011 in General
Hey,

I got a table with articles and about 20 columns. I'm using at the moment the standard server-side processing provided here: http://www.datatables.net/examples/server_side/server_side.html

Now, in my control panel the users can login and I'd like to allow them to create their own ordering of columns (also disabling some of them). Is there any possibility I can use the callback data like here: http://www.datatables.net/examples/server_side/column_ordering.html ?

So I just can edit this section to the users likings:

[code]
"aoColumns": [
{ "sName": "engine" },
{ "sName": "browser" },
{ "sName": "platform" },
{ "sName": "version" },
{ "sName": "grade" }
]
[/code]

Thanks in advance!

Replies

  • FLOKERFLOKER Posts: 3Questions: 0Answers: 0
    edited March 2011
    Sorry for push, but is there no-one who can help me with this?

    EDIT: Maybe somebody could provide the full source from this example (including the PHP file)?
    http://www.datatables.net/examples/server_side/column_ordering.html
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    The source for that example is included in the DataTables distribution (in examples/examples_support/server_processing_ordering.php ). So yes you could use that and sName to provide customisable column ordering. Hopefully the example code will give you a good starting point.

    Allan
This discussion has been closed.