childRowImmediate is not working

childRowImmediate is not working

PR89PR89 Posts: 1Questions: 1Answers: 0

Hi, I want to display all child rows expanded by default. $.fn.dataTable.Responsive.display.childRowImmediate is not working.
Can some one help me.

table = $(rptTblId).DataTable({
ajax: {
type: "POST",
url: "/Rpt/" + action,
data: function (data, settings) {
return $.extend({}, data, serializedFormJSON);
}
},
fixedHeader: false,
columns: GetReportColumn(action),
parents: {
url: null,
showChildren: true,
identifier: "AdviceID",
headerRow: $('thead[class="Header"]'),
viewText: "View Trades for this Advice",
columns: [
{ "data": "Id", "defaultContent": "N/A" },
{ "data": "Type", "defaultContent": "N/A" },
{ "data": "Name" }
],
drawAjaxCallback: function (table, tr, rowData) {
if (rowData["Values"].length > 0) {
return showChildrenPostAjax(table, tr, rowData, rowData["Values"]);
}
}
},
responsive: {
details: {
display: $.fn.dataTable.Responsive.display.childRowImmediate,
type: ''
}
}
});

This discussion has been closed.