In js file : var _currentPageID = 1; var _pageSize = 10; var _sortExpression = ''; var _sortDirection = 1; var _accessUrl = ''; var _gridDivId = 'ajaxGrid'; var _searchBoxDivId = 'searchFilter'; var _searchParameters = []; function asynList() { var jsonParameters = { "CurrentPageID": _currentPageID, "PageSize": _pageSize, "SortingColumn": _sortExpression, "SortingOrder": _sortDirection, "SearchParameter": _searchParameters }; $.ajax({ type: 'POST', contentType: 'application/json', data: JSON.stringify({ TablePaging: jsonParameters }), url: _accessUrl, success: function (result) { $('#' + _gridDivId).html(result); $('.sort-icon').removeClass('sort-asc'); ...
.Net and Xamarin Developer