Possible to edit how fnServerData is rendered? Insert classes and skip cells?
Possible to edit how fnServerData is rendered? Insert classes and skip cells?
ginjaninja
Posts: 5Questions: 0Answers: 0
Sorry if this is redundant. It's hard to explain what I'm looking for, and even harder to Google. I am using dataTables to display an interactive list of users that looks like this: http://www.flickr.com/photos/97024286@N07/8960402297/
As you can see there are icon buttons mixed in with the user data. I wanted to change the table so it's being populated via fnServerData, (right now it's built on page load then turned into a dataTable). I can't tell if there's a way to interrupt the output from fnServerData and add classes to empty cells, and add some data from fnServerData as attributes of a cell, not the text. Is that possible? The code below is an example of a couple cells. Hope this makes sense. Thanks!
[code]
{first name from database}
[/code]
As you can see there are icon buttons mixed in with the user data. I wanted to change the table so it's being populated via fnServerData, (right now it's built on page load then turned into a dataTable). I can't tell if there's a way to interrupt the output from fnServerData and add classes to empty cells, and add some data from fnServerData as attributes of a cell, not the text. Is that possible? The code below is an example of a couple cells. Hope this makes sense. Thanks!
[code]
{first name from database}
[/code]
This discussion has been closed.
Replies
http://www.datatables.net/release-datatables/examples/server_side/row_details.html
Allan
Allan