row-reordered event on getting fired

row-reordered event on getting fired

rkshirsagarrkshirsagar Posts: 9Questions: 5Answers: 0
edited June 2021 in DataTables 1.10

Code:

 var temp =  $(tableid).DataTable({   
        "data": res,
        deferRender: true,
        "scrollY": scorllY,
        "scrollX":false,
        "scrollCollapse": true,
        "scroller" :true,
        "paging":true,
        "language": {
            "zeroRecords": emptyLabel
        },
        "autoWidth": false,
        'dom': dom,
         "rowReorder": {update: false},
        "columnDefs":[{ }]
});

$(tableid).on( 'row-reordered', function ( e, diff, edit ) {
             alert("test");
         var  result=edit.triggerRow.data();
        }); 

and I have to fire event after row gets drop. but this event not getting called. how can I resolve it? Anything missing?

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

Sign In or Register to comment.