Category : datatable

I am using angular js datatable. If data table records empty, i need to disable my approval button. Please check my code <div class="row x-scrollable-table"> <button type="button" ng-disabled="dtColumns" class="btn" ng-click=" Approve()"> Approval </button> <div class="col-sm-12"> <table width="100%" ng-if="dtColumns" id="customer-table" datatable="" dt-options="dtOptions" dt-columns="dtColumns" class="table table-bordered table-hover"> </table> </div> </div> I tried to do using ng-disabled attribute. ..

Read more

I’m using jQuery data table and try to added thousand separators, but its not waking anyone know some solution for this? live code here Thanks here he code <table id="example"> <thead> <tr> <th>Seq.</th> <th>Name</th> <th>Position</th> <th>Office</th> <th>Start date</th> <th>Salary</th> </tr> </thead> <tfoot> <tr> <th>Seq.</th> <th>Name</th> <th>Position</th> <th>Office</th> <th>Start date</th> <th>Salary</th> </tr> </tfoot> <tbody> <tr> <td>2</td> ..

Read more

I am using angular js data table to my project. currently i am trying to pass value to my onclick function . Please check my below code $scope.loadRequestApproval = function () { $scope.dtOptions = DTOptionsBuilder.newOptions() .withOption(‘ajax’, { dataType: ‘json’, contentType: "application/json; charset=utf-8", url: appConfig.apiUrl + "/finalizedAllList?reqTraceId=" + $scope.requestApprovalId, xhrFields: { withCredentials: true }, type: ‘POST’, ..

Read more

I am using Angular js data table. currently I need to pass row ID. Therefore I am trying to call ng-click function. but its not working. Please check the below code $scope.dtOptions = DTOptionsBuilder.newOptions() .withOption(‘ajax’, { dataType: ‘json’, contentType: "application/json; charset=utf-8", url: appConfig.apiUrl + "/approvalList?reqTraceId=" + $scope.requestApprovalId, xhrFields: { withCredentials: true }, type: ‘POST’, data: ..

Read more

I am using angular js data-table. currently data-table loading correctly. I use below code to load my table HTML <table width="100%" id="declined-table" datatable="" dt-options="dtOptionsReject" dt-columns="dtColumnsReject" class="table table-bordered table-hover"> </table> js file $scope.dtOptionsReject = DTOptionsBuilder.newOptions() .withOption(‘ajax’, { dataType: ‘json’, contentType: "application/json; charset=utf-8", url: appConfig.apiUrl + "/finalizedList?status=REJECTED", xhrFields: { withCredentials: true }, type: ‘POST’, data: function (d) ..

Read more

I’m creating a data table that renders data from the server. There are some constraints that are why I’m setting headers of the data table dynamically. But I’m getting errors while pagination. It’s only showing 1st pagination page. My response data from API as follows : {‘data’: [{‘Name’: ‘Test’, ‘mode’: ‘–‘, ”: ‘–‘,’status’: ‘–‘, ‘remark’: ..

Read more