Custom columns (PHP server-side processing)
Custom columns (PHP server-side processing)
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!
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!
This discussion has been closed.
Replies
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
Allan