datatables

Datatables Column filter checkbox not working with updatepanel

匆匆过客 提交于 2020-01-05 08:47:52
问题 I have issue with updatepanel(asp.net), I put datatables grid inside updatepanel, all are working fine, but when updatepanel called, the checkbox column filter disappear... $('#data-tables').dataTable({ dom: 'RC<"clear">lfrtip', //"bSortCellsTop": true, colVis: { exclude: [0, 1, 2] }, 'bAutoWidth': false, "bSort": false, 'aoColumns': [ { 'sWidth': '15%' } ], columnDefs: [ { visible: false //, targets: 3 } ] }).columnFilter( { sPlaceHolder: "head:after", aoColumns: [ { type: "checkbox", values

ERROR TypeError: $(…).DataTable is not a function while using in angular 4

徘徊边缘 提交于 2020-01-05 08:32:46
问题 I'm getting ERROR TypeError: $(...).DataTable is not a function while using in angular 4. Any suggestions for resolving this issue. 回答1: If you are importing jQuery as a local lib, in your *component.ts file, like: import * as jquery from 'jquery' remove that line and treat it as a global library: declare var jquery: any; or declare var $: any; or just add one of that two lines to src/typings.d.ts 回答2: Still I did not get datable(datatable is not a function) after adding import * as $ from

How to add data inside datatable using jquery?

拜拜、爱过 提交于 2020-01-05 08:28:09
问题 I want to do is make a function that add data in my table and have a delete function in action column using jquery. My problem is I'm having trouble putting my input values in the table using jquery. function Add(){ $("#myTable tbody").append( "<tr>"+ "<td><input type='text'/></td>"+ "<td><input type='text'/></td>"+ "<td><input type='radio'/></td>"+ "<td><button class='btnDelete>Delete</button></td>"+ "</tr>"); $(".Save").bind("click", Save); }; 回答1: If you are using datatable, then use

How to add data inside datatable using jquery?

三世轮回 提交于 2020-01-05 08:28:04
问题 I want to do is make a function that add data in my table and have a delete function in action column using jquery. My problem is I'm having trouble putting my input values in the table using jquery. function Add(){ $("#myTable tbody").append( "<tr>"+ "<td><input type='text'/></td>"+ "<td><input type='text'/></td>"+ "<td><input type='radio'/></td>"+ "<td><button class='btnDelete>Delete</button></td>"+ "</tr>"); $(".Save").bind("click", Save); }; 回答1: If you are using datatable, then use

dataTables fixed columns plugin NOT working

你。 提交于 2020-01-05 08:27:30
问题 To share the files I have created a project on github repo link: https://github.com/shantanookirtane/dataTablesFixedColumns.git This repository has index.html where the table gets loaded under the DOM structure similar to what is getting created when I run my application. The repo has all necessary css and js files. I have add the exact issue description in README.md file on github for this project, pasting the same here again. Datatable version : 1.9.1 Datatable Fixed column version: 3.0.2

jquery datatable pagination not showing page counts

天大地大妈咪最大 提交于 2020-01-05 08:08:21
问题 Hi i'm using jquery data table 1.9.4 for population server side processing tables.The data's are loading correctly. but the pagination is not working as expected. Actually it has more than 30 rows and the next,previous and page numbers not working var sTableAllCustomers = $('#tblAllCustomers').dataTable({ "bDestroy": true, "bProcessing": true, "bServerSide" : true, "bLenthChange" : false, "iDisplayLength": 5, "aLengthMenu": [[5, 10, 25, 50, -1], [5, 10, 25, 50, "All"]], "sPaginationType" :

Datatables serverside. Send extra parameters asynchronously

穿精又带淫゛_ 提交于 2020-01-05 08:05:36
问题 I'm using Datatables with server-side processing. I'm able to send extra parameters to the server but they are sent only when the table is loaded for the first time or when the table is reloaded due to filtering, ordering, etc. I want the extra parameters to be sent to the server every time I select a value from the select field. How can I achieve this behavior?. Thanks in advance. This is my datatables script <script> $(document).ready(function() { $('#tabla').dataTable( { "sDom": '<"top"l

Datatables serverside. Send extra parameters asynchronously

那年仲夏 提交于 2020-01-05 08:05:05
问题 I'm using Datatables with server-side processing. I'm able to send extra parameters to the server but they are sent only when the table is loaded for the first time or when the table is reloaded due to filtering, ordering, etc. I want the extra parameters to be sent to the server every time I select a value from the select field. How can I achieve this behavior?. Thanks in advance. This is my datatables script <script> $(document).ready(function() { $('#tabla').dataTable( { "sDom": '<"top"l

Add a checkbox in each row for datatable jquery using angular.js

蹲街弑〆低调 提交于 2020-01-05 05:56:36
问题 What I want is, I want to display some data in a datatable format by using angular js. So I did something like below. Angular <script src="~/Scripts/jquery.js"></script> <script src="~/Scripts/jquery.dataTables.min.js"></script> <script src="~/Scripts/angular.js"></script> <script src="~/Scripts/angular-datatables.js"></script> var app = angular.module('myapp', ['datatables']); app.controller('homectrl', ['$scope', '$http', 'dtoptionsbuilder', 'dtcolumnbuilder', function ($scope, $http,

Best way to export ajax/serverside datatable

白昼怎懂夜的黑 提交于 2020-01-05 05:36:28
问题 For my app, I have a datatable that uses ajax to retrieve records. The datatable allows the user to sort, search and I have added an extra custom field which allows the users to filter based on a category. Now, when I use the HTML5 method provided by datatables to export to CSV/Excel, I only get the records that are displayed in the browser in the export. So, my only option is to do a server side export. I have a working export function, but I am struggling to find the proper way to also pass