Search
14683 results 161-170
Reference
createdRow
› Callback for whenever a TR element is created for the table's body.add events, class name information or otherwise format thecolumns.orderDataType
› Live DOM sorting type assignmentplug-ins page for further information.columns.name
› Set a descriptive name for a columnselector operation. For more information about column selectors, pleasecolumnDefs.targets
› Assign a column definition to one or more columns.columnDefs.targets option provides the information required by DataTables forDataTable.ext.errMode
› Set how DataTables will report detected errorsit can provide useful information that describes the errordiv
› Text / HTML containerThis feature doesn't provide table control or information itself, rather it provides an easy mechanism that you can use to place HTML or text around a table in the DataTables controlled layout grid.preDraw
› Pre-draw event - triggered as the table is about to be redrawn.can be used to inform you of this state.draw
› Draw event - fired once the table has completed a draw.to give exactly this information. The draw event isunshift()
› Add one or more items to the start of an API instance's result set.DataTables API. For more information about the original method,state.save()
› Trigger a state save.be able to add information to the DataTables state
Forum
- 8th Mar 2014Server side info (Showing X to Y of Z entries) incorrectThanks for the test case. I don't think there is anything wrong with your server-side processing script, it looks like the state saving that is going wrong. It looks like the iStart parameter is being given as a string, and not an integer. I think this is probably because it is being sent as a plain HTTP variable which of course has no type. What I'd suggest you do is JSON.stringify the state object before sending it to the server and then using that to save and return. Then type is retained. I'll update my example to reflect this. Allan
- 28th Feb 2014Newbie: Poor docs!! many examples, but none of them gives basic/setup and other info for a newbie.Try this. http://code.google.com/p/jquery-datatables-in-line-editing/downloads/detail?name=CreativePathExample.zip&can=2&q= It's a real basic working example that reads/write from a database. I got this up and running really quick. I wish I had stumbled on this earlier. It would have saved me a few days of work not to mention frustrations. It's exactly what I wished for, which was an example I could just plop into my www folder that includes a database I could just import. Just follow the directions in readme.php. Only problem I encountered was an error when importing the sql file into mysql database in phpmyadmin was that it didn't recognize " latin1$$". This was easily solved by removing "DEFAULT CHARSET=latin1$$" from the file.
- 2nd Dec 2013Dynamically setting paging info on initialisationThanks Allan...yes, I see that is exactly what I need!
- 19th Sep 2013sDom Help! Need to get Info and Filter options in same lineExcellent to hear you got it working :-). And thanks for your kind words! Allan
- 24th Mar 2013Re-rendering table from pre-existing column infoOkay makes sense on not manipulating the fnsettings directly. I'll revisit later since I have a workaround for now to just manually destroy and recreate the table with the new data. Seems a bit odd that the table renders fine though and only fndestroy is the issue.
- 21st Mar 2013Right align info text?A little bit of CSS? [code] .dataTables_info { width: auto; float: right; } [/code] Allan
- 8th Jan 2013sDom not working to suppress page info textSigh. Of course I do. Gar, thanks. g.
- 21st Nov 2012Sorting row with ranking infoAgreed - you need to use a sorting plug-in. The formatted numbers plug-in might be the best option. Allan
- 7th Nov 2012Get DataTables version info[code] $.fn.dataTable.version [/code] will get you the version. Its documented in the API docs here: http://datatables.net/docs/DataTables/1.9.4/#version - but not on the main site :-(. I'll get that sorted out :-) Allan
- 14th Aug 2012mData for mapping DOM Table vs JSON due to tool generated tables having additional info inExports as in the files created by TableTools, or something else? If TableTools, then you can use http://datatables.net/extras/tabletools/button_options#fnCellRender to manipulate the string before it is exported. Allan