hy, i’m now using L5 and yajra/datatables plugin, everything work fine until i create delete button to delete record, the delete button is not working here is my controller : Here is my JS : the JS event for btn-delete[data-remote] is not working, it’s no return error in console, but nothing happen when i click it Answer Its maybe not
Tag: datatables
How to position DataTables buttons outside of table wrapper
Can you please take a look at This Demo and let me know how I can re-position the dataTabes buttons somewhere else , let say inside .panel-heading calss and apply btn-sm to them? Here is the very basic standard format which I have now and as you are fully aware it is adding the buttons inside #example-wrapper Answer Sure. Use
Apply a condition on specific column data – jquery DataTable
Firstly, I have the following table: The column which enclosed by red color display 2 types of account, the value 1= Free and value 2 = paid (free, paid accounts). I want before rendering the data, apply a condition to change the 1 to free and 2 to paid. that’s it. Table initialization: Answer Use a column renderer : The
How to get name of datatable column?
I’m using DataTable 1.10.9 (from https://datatables.net). Columns for the datatable are defined at the initialization step in javascript and each column has a unique name, e.g.: I know I can get the column from the table by the name I’ve given it, but I can’t seem to find how to find a column’s name from the column object. (I’m hoping
How to send current page number in Ajax request
I am using jQuery DataTable to display huge amount of data in a table. I am getting data page wise on Ajax request like this: and here is the spring controller: The problem is that when I change page in table it alerts correct pageNo on page (in JavaScript), but in spring controller I am always getting the initial value
How can I stop all the currently ongoing Ajax queries that DataTables instance have started?
Brief Description Resetting a test server to a known state causes my tests to fail due to Ajax requests launched by DataTables instances being ongoing at the time the server is reset. I’d like to prevent this by stopping the DataTables requests before the server is reset. Detailed Description I have an application in which I use DataTables on some
Additional Scroll Bar Below the Header of JQuery Datatable
I am using Datatables (Jquery). Using the code i am getting a horizontal Scroll bar above my footer of the table as in the Link : Now i want to get another Scroll Bar below the Header also. Help me out. Answer For this you have to add another container which has a fixed width like 1000px with overflow auto.
How to reload/refresh jQuery dataTable?
I am trying to implement functionality whereby clicking a button on the screen will cause my jQuery dataTable to refresh (as the server-side data source may have changed since the dataTable was created). Here’s what I have: But when I run this, it does nothing. What’s the proper way to refresh the dataTable when the button is clicked? Answer You
jQuery datatables ajax callback
I am using jQuery DataTables and doing server-side data. I’m trying to call a function when the ajax call returns. I tried inserting this fnCallback2 which calls my function and the original function, but jQuery just throws an error (and doesn’t tell me what the error is) and skips out. I also tried adding the fnInitComplete parameter, but that only