Customized Sorting Using order.dt Not Loading Ajax Call

Customized Sorting Using order.dt Not Loading Ajax Call

nayansufismnayansufism Posts: 4Questions: 1Answers: 0
edited May 2016 in Free community support

I am using Ordert.dt Procedure to customized sorting. it is not working with default sorting using Server-side. But it is not loading Ajax inside that function. It is loading ajax which is assigned as default. I am attaching code here below.

$('#dataTableApplicant').on('order.dt', function () {
var order1 = $rootScope.applicantTable.order();

// NOT LOADING THIS AJAX CALL
$rootScope.applicantTable.ajax.url("http://abc.com/applicants/admin/search?"
+ "noOfResultsPerPage=" + 10
+ "&orderBy=" + order1[0][1]
+ "&sortBy=" + "id"
+ "&pageNo=" + 1 + "&draw=" + 1;
});
}

This discussion has been closed.