Remove rowgrouping

Remove rowgrouping

siva_gsiva_g Posts: 1Questions: 0Answers: 0
edited December 2012 in Plug-ins
am using DataTables Row Grouping Add-on. I used it by select box change event.

Code

In PHP :

[code]
None
Domain
Type
Category
Status
[/code]

In JS :

[code]$(document).ready(function() {
var DTable = $('#discovery').dataTable( {
"sDom": "<'row-fluid'<'span3'<'toolbar'>><'span3'<'selectbar'>><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
"bPaginate": false
});
$('#Group-Discoveries').live('change', function(){
var index = $(this).val();
if(index == ''){

}
else{
DTable.rowGrouping({
"iGroupingColumnIndex": index,
"bHideGroupingColumn": false,
"bHideGroupingOrderByColumn": false,
"sGroupingClass":"group_"+index,
"bSetGroupingClassOnTR":true,
"bExpandableGrouping":true
});
}
});
});[/code]

I want to remove rowgrouping when the index is empty.

Thanks.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    The row grouping plug-in is a third party plug-in - I'd suggest asking in their issue tracker: http://code.google.com/p/jquery-datatables-row-grouping/issues/list
This discussion has been closed.