Search
18504 results 2811-2820
Forum
- 18th Oct 2013Datatables callback/event when empty ajax responseThis works, thanks! Why === and not == in the if statement?
- 12th Sep 2013Ajax pagination - Having 1 page although iTotalDisplayRecords and iTotalRecords are set to 57You'r a lifesaver :) Thanks!
- 3rd Sep 2013I can not do working DataTables with ajax.Test case please - as noted in the forum rules.
- 30th Aug 2013MVC jquery datatable return multiple ajax responseok, I guess i'm wrong, I found the culprit that cause my jquery datatable return multiple response from server, instead of "bprocessing", I figure out that the RowGrouping plugin caused my datatable to return multiple respond from the server
- 22nd Aug 2013Selecting specific rows while loading aaData via ajaxThank you Allan, this works great.
- 1st Aug 2013DataTables AJAX source with sub-arrays and sAjaxDataPropYeah !! Thx Allan. Loïc
- 9th May 2013Event after an Ajax call is completed1 - what is the best way to get the total number of rows? Currently with this plug-in: http://datatables.net/plug-ins/api#fnPagingInfo . v1.10 will have something similar built in. 2 - And how do I customize the number of rows to show in the listbox (it's fixes to 10/25/50/1000) As you say - aLengthMenu :-) Allan
- 27th Feb 2013What's a good way to handle ajax rows with mixed sets of columns?Is there a way I can use the mData property to silently drop null values in when properties aren't defined? Use sDefaultContent and set it to an empty string. Then null or undefined data (as is the case here) will be shown with the default content rather than showing a warning. Allan
- 22nd Feb 2013Custom modal form via server side ajax callThanks for the tips Allan! That was exactly what I was looking for! Below is the code I am using in case anyone else needs something similar. [code] $(document).ready(function() { oTable = $('#example').dataTable(); } ); [/code] add some code for when a row is clicked: [code] $('#example').on('click', 'tr', function (e) { e.preventDefault(); var data = oTable.fnGetData(this); //data for selected record var rowPosition = oTable.fnGetPosition( this ); //position of record in table //alert(data[0]); //id of record in my case //my custom modal code //after submitting form I then just call this to update the row... oTable.fnUpdate( ['id', 'name', 'email', 'phone_styled', 'phone_raw'], rowPosition); // insert new data in row. } ); [/code]
- 4th Feb 2013Styled pagination links not appearing under AJAX loading DatatableOops, sorry I realize I was missing "sPaginationType": "bootstrap",