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

Init datatables on nested tables with fnIsOpen

$
0
0
Hey Alan,

I find that when I put a second init of datatables for the nested table container I don't see the datatables script applied to the nested tables. Is this due to the fact that the nested tables are not present when the page js loads? How can I get around this?

button is clicked to show nested table:

$('#example1 tbody tr td.attendees a').click( function () {
				    if ( oTable.fnIsOpen( this.parentNode.parentNode ) ) {
				      oTable.fnClose( this.parentNode.parentNode );
				      // change value of text in button to be "show"
				    } else {
				    	
				    	oTable.fnOpen( 

				      		this.parentNode.parentNode,

nested table init:

$('.info_row .attendee-table').dataTable( {

					'sDom': '<\"events-filters\"f><\"clear\">rtli',

					'bSort': true,

		            'bPaginate': false,

			        "sScrollX": "100%",

			        "sScrollXInner": "110%",

			        "bScrollCollapse": true
			    });

Ultimately I would like to load all the nested tables immediately so I can search on them using the parent table search box. Please use my remaining credits to assist with this.

Viewing all articles
Browse latest Browse all 1816

Trending Articles