Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 124

using mRender, how can I give radio buttons unique name per row?

$
0
0
Very simply, I'm building a table dynamically (as well as adding/removing rows dynamically), and each row will contain 4 columns. Three of the columns will be radio buttons. To function properly I need to give each row's set of radio buttons a unique name ... e.g.

I can't figure out how to get that unique number for the name within mRender... whether it's the rowIndex or some other internal dataTable reference.

right now, my mRender looks like this:
[code]
aTargets: [1,2,3],
mData: null,
mRender: function (data, type, full) {
if (type == 'display') {
return '';
}
return data;
}

[/code]

Any advice?
Thanks!

Viewing all articles
Browse latest Browse all 124

Trending Articles