Search
11331 results 2061-2070
Forum
- 21st Jan 2017Filter and searsh and sorting not worked in with angularjshi, i am using angularjs in django template html and in that i am used data table but searching,sorting not work in that my tempalte is {% extends "base.html" %} {% block ngapp %} ng-app="premisesApp" {% endblock %} {% block js %} <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script> <script src="/static/js/country_angular.js"></script> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#areaTable').DataTable(); }); </script> {% endblock %} {% block content %} <div class="content"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="header"> <h4 class="title">Premises List</h4> </div> <div class="content table-responsive table-full-width"> <table id="areaTable" class="table table-hover table-striped" ng-controller="PremiseCtrl"> <thead> <tr> <th>name</th> <th>description</th> <th>Edit</th> <th>Delete</th> </tr> </thead> <tbody> {% verbatim %} <tr ng-repeat="premise in premises.premises"> <td>{{premise.name}}</td> <td>{{premise.description}}</td> <td><a href="/app/edit-premises/{{premise.id}}/">Edit</a></td> <td> <a href="#" ng-click="premiseDelete(premise.id)">Delete</button></td> </tr> {% endverbatim %} </tbody> </table> </div> </div> </div> </div> </div> </div> {% endblock %}
- 13th Jan 2017Add a "Reset Filter" link in an Angular DatatableDatatable plugin for Column Filtering in my Angular Datatable.
- 11th Jan 2017how jquery jtable search ,filter and curd oprations all in one table in java mvcplz give the entair code for full length code
- 5th Jan 2017multi filter select table with multiple drop down boxes (with chosen keywords)This table is very nice and automatically generates items for drop down choices: https://datatables.net/examples/api/multi_filter_select.html But I have table cells with much content and I wish to create dropdown searches for each column with a restricted list of keywords. Is there an example of multi_filter_select.html with self created list of search items?
- 4th Jan 2017Datetime filterHow i can split datatables datetime. At the moment it only splits date but I need hours:minutes:seconds too.. My code: $.fn.dataTable.ext.search.push( function (settings, data, dataIndex) { var min = $('#min').datetimepicker("getDate"); var max = $('#max').datetimepicker("getDate"); var d = data[4].split("/"); var startDate = new Date(d[1]+ "/" + d[0] +"/" + d[2]); if (min == null && max == null) { return true; } if (min == null && startDate <= max) { return true;} if(max == null && startDate >= min) {return true;} if (startDate <= max && startDate >= min) { return true; } return false; } ); So it looks like 18/02/2017 - 18:05:45
- 3rd Jan 2017Can we place column Filter widget in headers of each column instead of top of..page for individual column filtering and placed it using
- 23rd Dec 2016Our total calculation is off when using a filter! Any ideas?We're using DataTables for reporting on some finance items, and I've come across the following issue: We are bringing in the entire recordset via a basic SQL query. This can be filtered by date, or searched. All of that works fine. The issue is with the filtered results not providing an accurate total as the total is the applicable value of the entire recordset. Now the page total works, but that is not the total that we need at the bottom of the data table. Should we be recoding the report to only use the applicable dates in the SQL query or is there a way to get DataTables to use the filtered results (even if multi-page)? This would also apply to the CSV and Copy extensions. Thanks!
- 22nd Nov 2016filter specific column instead of entire rowi have added the image below, if i search for microsoft i want to display the column in which microsoft is not the entire row. is it possible using Datatable?
- 22nd Nov 2016How can I filter a column based on a checkbox?Here's the basic setup of my table: listTable = $('#bandit_list_table').DataTable({ pageLength: PAGE_LENGTH, processing: true, serverSide: true, ajax: { 'url': '/a/multi_armed_bandit/get_trials_json?soid=' + self.model.get('store_id'), 'type': 'POST' }, // ajaxSource: '/a/multi_armed_bandit/get_trials_json?soid=' + self.model.get('store_id'), order: [[TRIAL_ID_COLUMN, 'desc']], language: { search: ' Search: ', lengthMenu: ' Show 102550100 items per page ', loadingRecords: 'Loading Bandit Trials. Please wait...', paginate: { first: '', previous: '', next: '', last: '' } }, pagingType: 'full_numbers', Here's my search function: var getActiveOnly = e.target.checked; listTable.columns(8).search(getActiveOnly).draw(); I can listen for the checkbox to be checked with no problems and I can get my PHP endpoint to return the data I want, but it's not updating my Datatable.
- 11th Nov 2016I have a checkbox in the first column and would like to filter based if checked or not checkeda mes with the filtering and the pagination.. what