oSettings.aoData[iRow] is undefined
oSettings.aoData[iRow] is undefined
Hello,
I use jquery dataTables version 1.9.4.
I have a dataTable with grouping and I display the row count of each group.
This is the code causing the error:
$(document).ready(function() {
$('#users-table').dataTable()
.rowGrouping({
bExpandableGrouping: true,
fnOnGroupCompleted: function(oGroup) {
var length = $('#users-table tr' + oGroup.groupItemClass).length;
$(oGroup.nGroup).find("td").find("sub").text("[" + length + "]");
}
});
});
and this is the error:
TypeError: oSettings.aoData[iRow] is undefined
Please, can you tell me the cause of the error.
thanks in advance
please accept my sincere greetings
Replies
Is the error in the
rowGrouping
plug-in? That is third party software and not supported here. I would suggest asking in that project's issue list.Allan
Dear Allan,
Thank you for your reply
The error is in the function _fnGetCellData(oSettings, iRow, iCol, sSpecific) in the file jquery.dataTables.js.
I notice that the error happened when iRow parameter is passed null
Can you link to a test page that shows the issue please? That would greatly assist in my being able to debug it. If you could also provide the page without the rowGrouping plug-in (to discount any possibility of an error there) that would be great.
Thanks,
Allan
Dear Allan,
I am sorry to reply later.
In fact, I solve the problem with another way without calling the function rowGrouping()
Greetings