@section pagespecific {
I don't really know what your question in I'm afraid. Perhaps you can link to a test case showing the issue, per the forum rules.
Allan
Hey Allen, I think sumnima is hitting the same issue I am...
I want more than one DataTable on a page with each one having their own custom toolbar name.
Each of my DataTables are in their own partial view.
Yet when each are displayed on the same page, each get the toolbar name of the last one... not their own toolbar name.
That's related to the $("div.toolbar") selector - that will get all div elements with a toolbar class.
$("div.toolbar")
div
toolbar
If you want to limit it to a specific table you could use the table().container() method to get the container for a table - e.g.:
table().container()
$( 'div.toolbar', table.table().container() )...
Excellent! Thank you, Allan!
It looks like you're new here. If you want to get involved, click one of these buttons!
Answers
I don't really know what your question in I'm afraid. Perhaps you can link to a test case showing the issue, per the forum rules.
Allan
Hey Allen, I think sumnima is hitting the same issue I am...
I want more than one DataTable on a page with each one having their own custom toolbar name.
Each of my DataTables are in their own partial view.
Yet when each are displayed on the same page, each get the toolbar name of the last one... not their own toolbar name.
That's related to the
$("div.toolbar")
selector - that will get alldiv
elements with atoolbar
class.If you want to limit it to a specific table you could use the
table().container()
method to get the container for a table - e.g.:Allan
Excellent! Thank you, Allan!