How to do DataTable row grouping. Getting the Microsoft JScript runtime error.

How to do DataTable row grouping. Getting the Microsoft JScript runtime error.

comicragecomicrage Posts: 12Questions: 2Answers: 0
edited March 2013 in General
HI,

I am trying to add the datatable row grouping where the .rowGrouping takes the first column and group the row accordingly. Here is my code so far:

$(document).ready(function () {

var oResultGrid = $("[id$='gvReportData']");

if (fixEmptyDataRow(oResultGrid)) {
var oTable = oResultGrid.dataTable({
"bPaginate": false,
"bFilter": false,
"bInfo": false
}).rowGrouping();

}
else {
oResultGrid.dataTable({
"sPaginationType": "full_numbers",
"aaSorting": [[1, 'asc']]
}).rowGrouping();


When I run the code, I keep getting this error. Any help is greatly appreciated. Thanks.


Unhandled exception at line 1318, column 17 in http://localhost:12331/Reports/Cases.aspx

0x800a01b6 - Microsoft JScript runtime error: Object doesn't support this property or method
This discussion has been closed.