Smart Table Serious Issue #72

Open
hemrajrav opened this Issue Nov 11, 2016 · 0 comments

Projects

None yet

1 participant

@hemrajrav

Hi,

I had used Smart Table and I facing serious issue please give me immediate solution of below Query.

  1. when Smart table fill by using $.Ajax() method ,that is in Service and then calling it from Controller but loading is not working ,I have to implement it all -filter sort and pagging working fine.

ex -
Services.GetPendingRequest("1", Division).success(function (resp) {
$scope.loader.loading = true;
$scope.PendReqData = resp;
$scope.PendReqDataCount = $scope.PendReqData.length;
$scope.loader.loading = false;
}).error(function (data, xhr, thrownError) {
alert(thrownError);
});

  1. When Smart table fill by using $http.get() then ,Loading is working but pagging and filter is not working.

Ex-

$scope.loader.loading = true;
$http.get(BaseUrl + 'OHDWebService.asmx/BindPendingOrdersReqDetails', config2)
.success(function (data, status, headers, config) {

           $scope.PendReqUndData = data.responseJSON;
           $scope.PendReqUndDataCount = $scope.PendReqUndData.length;
           $scope.loader.loading = false;
       })
       .error(function (data, status, header, config) {
           $scope.ResponseDetails = "Data: " + data +
               "<br />status: " + status +
               "<br />headers: " + jsonFilter(header) +
               "<br />config: " + jsonFilter(config);
       });
  1. If smart table fill by $http then Data is not showing in browser -

Ex.

$scope.loader.loading = true;
$http({
url: BaseUrl + 'OHDWebService.asmx/BindPendingOrdersReqDetails',
dataType: 'json',
params: { Status: '1', Division: '' },
contentType: 'application/json;charset=utf-8',
method: 'GET',
async: false,
cache: false,
headers: { 'Accept': 'application/json', 'Pragma': 'no-cache' }
}).success(function (data) {

        $scope.PendReqData = data;
        $scope.PendReqDataCount = data.length;
          $scope.loader.loading = false;
    }).error(function (data) {

        alert(data);
    });

Please provide immediate solution

Thanks & Regards,

Hemraj Rav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment