Generate dynamic columns with a variable string doesn't work
Hi everybody, I'm trying to generate a dynamic DataTable according to a variable $_GET. So I generate a string according to the columns name and their type (only important for dates so I can sort them...
View ArticleFilter the list in a combobox
Hi, I want to filter the list in a combobox, from a datatable editor. When I use the where condition, I do not have any errors, but it does not return any records. Editor::inst( $db, 'tb_diccionario' )...
View ArticleEditor AutoFill and KeyTable together Problem
This example is very helpful for me, but when I use this function, I found that when I open up the input element, I try use the autofill ,but It doesn't work。Only I should close the input element first...
View ArticleFixed columns + ScrollY: bug with mousewheel button scroll
Hi there, Though there have been several threads about rows not scrolling on standard mousewheel scroll, I haven't seen this one documented anywhere. Goto the basic demo of Fixed Columns:...
View ArticleBug Fixes for _fnCalculateColumnWidths
This bug fix is for tables using the style table-layout: fixed. There is a problem when trying to set discreet column widths if scrollX is true. If a column has content wider than the specified width,...
View Articletable.ajax.reload(): how do you JSON.parse?
I am trying to reload my table on the click of a button using table.ajax.reload(). I'm getting an invalid JSON error and upon going through troubleshooting with datatables/tn1, I can see that it is...
View ArticleCall initComplete on table.ajax.reload()
Due to special layout on my webpage I need to get the "recordsTotal" value in a function when I do a table.ajax.reload() When I do my initial datatable init I have an initCompletefunction where I can...
View ArticleOne-to-many checkboxes in standalone example
I am trying to combine these two examples, https://editor.datatables.net/examples/advanced/joinArray.html and https://editor.datatables.net/examples/standalone/simple.html, to create a standalone...
View ArticleGet current year for search option
I need to get the current year from current date and use it in a column search, some thing like: var currDate = new Date(); var year = currDate.getFullYear(); searchCols: [ null, { search: year,...
View ArticleFilter column just in time using serverSide
Hi, I try to implement column filtering without pressing Enter key, but I cant find predefined option for this. I use serverSide processing. Pressing enter is not comfortable each time. Can somebody...
View ArticleExport to excel first row is coming as filename
I am using this code for export link on grid. buttons: [{ extend: 'excel', text: 'Export to Excel', filename: 'My Report1' }], But problem is that, when I am exporting data to excel, First Row has...
View ArticleCannot read property 'oSort' of undefined
I have added a custom sort functionality to my datatable. and assigned the colum like this table = jQuery('#table').DataTable({ columnDefs: [{ "type": "weekday-sort", "targets": 2 }],... It worked...
View ArticleMultiple inline editing then one submit
Hi, Is it possible to have all inline editing saved on client side then all changes can be submitted once using a button ? Thanks
View ArticleDate column sorting not working for H24 format
Hello, I use a simpleDateFormat "yyyy-MM-dd hh:mm:ss.SSS" to display a date in my datatable. I've to change this format to "yyyy-MM-dd HH:mm:ss.SSS" to have the 24H format. But with this new format,...
View ArticleSort the datatable only of rows with available data not whole table
Iam firing an event to get API on the drawcallback after the datatable got data list. Also what i does that it keep check if current showed page has loaded and if the column data is loaded and column...
View Articlejson returns nothing after value changed
Hi guys, I have DataTables table with row details which are opening by clicking on row. The row details are displayed in 3 different languages which are selected by checkbox. When the row is clicked,...
View Articledynamically fit to contents in server-side
My issue comes from the server-side pagination. Once new data has been injected by ajax source, I need to draw again the table to get the reading fixed because I don't use multiple line per cell. So...
View Articlejson data to be updated in three table and color will change as per data in cell
Hi I have a JSON data which will call via ajax , and the data contained value of three tables . i have to update the table as per some condition , as per above data if the first three character is (C2S...
View Article