javascript - Datatables Expand All on multiple pages functionality -
i implementing expand functionality of rows in datatable. have functionality implemented each individual row in datatable + sign, when click there row expands. each row has onclick javascript function. while implementing expand all rows in page 1 gets expanded. on page 2 rows stay closed. should doing onclick function gets called on page 2 well. here code expand all.
jquery('body').on('click','#expandall ',function(){ var rows = jquery("#sortable_mappedtable").datatable(); jquery.each(rows.fngetnodes(), function (i, row) { var id = jquery(this).find('.datatoggle.datatoggleclosed').trigger("onclick"); }); });
Comments
Post a Comment