Possible to target specific element in table cell?
Possible to target specific element in table cell?
I'm trying out DataTables with server-side processing. It looks like DataTables replaces the entire cell with the received data. Is it possible to target specific elements or attributes inside each cell?
This is what the page normally looks like: http://tl.toofz.com/Quotes/List (http://debug.datatables.net/ukijor).
This is what it looks like after I enable server-side processing: http://tl.toofz.com/Quotes/Quote/ListDT (http://debug.datatables.net/acabiy).
Here's a sample JSON output:
[code]{
"aaData":[
[
"Leonard",
"This is an incredibly quotable quote.",
"8"
],
[
"Marsilio",
"A sturdy lad ... who teams it, farms it ... and always like a cat falls on his feet, is worth a hundred of these city dolls.",
"7"
],
[
"Hermann",
"If you hate someone, you hate something in him that is part of yourself. What isn't part of ourselves doesn't disturb us.",
"6"
],
[
"Alphonse",
"Every man has three characters: That which he exhibits, that which he has, and that which he thinks he has.",
"5"
],
[
"Elmo",
"You generally hear that what a man doesn't know doesn't hurt him, but in business what a man doesn't know does hurt.",
"3"
]
],
"iTotalDisplayRecords":8,
"iTotalRecords":8,
"sColumns":null,
"sEcho":"1"
}[/code]
This is what the page normally looks like: http://tl.toofz.com/Quotes/List (http://debug.datatables.net/ukijor).
This is what it looks like after I enable server-side processing: http://tl.toofz.com/Quotes/Quote/ListDT (http://debug.datatables.net/acabiy).
Here's a sample JSON output:
[code]{
"aaData":[
[
"Leonard",
"This is an incredibly quotable quote.",
"8"
],
[
"Marsilio",
"A sturdy lad ... who teams it, farms it ... and always like a cat falls on his feet, is worth a hundred of these city dolls.",
"7"
],
[
"Hermann",
"If you hate someone, you hate something in him that is part of yourself. What isn't part of ourselves doesn't disturb us.",
"6"
],
[
"Alphonse",
"Every man has three characters: That which he exhibits, that which he has, and that which he thinks he has.",
"5"
],
[
"Elmo",
"You generally hear that what a man doesn't know doesn't hurt him, but in business what a man doesn't know does hurt.",
"3"
]
],
"iTotalDisplayRecords":8,
"iTotalRecords":8,
"sColumns":null,
"sEcho":"1"
}[/code]
This discussion has been closed.