Search
10143 results 611-620
Forum
- 8th Apr 2015How to avoid default submit (post data call) on enter key down in edit mode of a row?Hi Folks, just messed up with handling the usecase when i hit enter while editing a row in editor. I want to avoid calling submit() as i have custom save controls with each line. Please HELP.
- 25th Mar 2015Responsive - Show detail rows by default?Hello, I searched for this but just don't see an answer - would love to switch to DataTables (and more than willing to support it), but it needs to provide a certain functionality of the tool it would be replacing. Is there any way for Responsive mode to simply show the child details without hiding/requiring an expand/etc.? In many cases, we have small tables where a row or two might need to wrap, but we still need that data to be visible at the outset. I really hope so, because so far this thing can do everything else better than our current solution. Thanks
- 17th Mar 2015Change default alignment for all but one columnI want almost all of my columns to be right-aligned. So I tried this: "columnDefs": [ {className: 'text-right', targets: '_all'}, {className: 'text-left', targets: [0]} ], But all the columns are now right aligned. Do I really have to enter all my columns in the targets field?
- 23rd Jan 2015disable ordering for users disables default orderHi, Sorry for asking what is probably a very basic question but I can't find the answer. I use client-side Datatables and need to sort on columns without being sortable by a user. If I use "ordering" as false, "order" and "orderFixed" are not applied. var table = $('#example').DataTable({ "ordering": false, "order": [[0,'asc'],[1,'desc']] });
- 19th Jan 2015How to default to Page 1 when user changes no of entries per pageHi, When user changes the no of entries from 10 to 25 for example and user is in Page 3 already.Now i want datatables to display from 1 to 25 records. Instead it displays 31 to 45 as user is already in page 3. Regards, Sri
- 6th Jan 2015I'm having a problem changing the default sort order on a table.I've used the example from the documentation - $(document).ready(function() { $('#example').dataTable( { "order": [[ 3, "desc" ]] } ); } ); But it still the first column which is being sorted. any idea where I am going wrong?
- 11th Dec 2014How to generate custom footer outside default divI would like to generate datatable footer in a "article" tag instead of "div" and i don't know how to perform that using param sDom. Code expected : <article> <table id="datatable"> //datatable content </table> </article> //datatable footer <article class="pg"> <div class="pg_count"> <p><span>100</span> sites</p> </div> <div class="pg_std"> <ul class="pg_std_list"> <li><a href="#">Premier</a></li> <li><a href="#">Préc.</a></li> <li class="num sel"><a href="#">1</a></li> <li class="num"><a href="#">2</a></li> <li class="num"><a href="#">3</a></li> <li><a href="#">Suiv.</a></li> <li><a href="#">Dernier</a></li> </ul> </div> </article> Is it possible?
- 31st Jul 2014Change default cell to input fieldHi, I've been browing the examples and references to see how to implement input fields as my cell. However I can't seem to find anything. Is there a way to create the DataTable with certain colum cells being input fields and the rest not?
- 1st May 2014I can't seem to override the default language stringsHello, I'm using django's javascript gettext for client side i18n. I'd rather not have two different i18n methods so I'm trying to set up my translations as: $.extend(true, $.fn.dataTable.defaults, { oLanguage: { sEmptyTable: gettext("No data available in table"), sInfo: gettext("Showing _START_ to _END_ of _TOTAL_ entries"), sInfoEmpty: gettext("Showing 0 to 0 of 0 entries"), sInfoFiltered: gettext("(filtered from _MAX_ total entries)"), sInfoPostFix: "", sDecimal: get_format('DECIMAL_SEPARATOR'), sThousands: get_format('THOUSAND_SEPARATOR'), sLengthMenu: gettext("Show _MENU_ entries"), sLoadingRecords: gettext("Loading..."), sProcessing: gettext("Processing..."), sSearch: gettext("Search:"), sZeroRecords: gettext("No matching records found"), oPaginate: { sFirst: gettext("First"), sLast: gettext("Last"), sNext: gettext("Next"), sPrevious: gettext("Previous") }, oAria: { sSortAscending: gettext(": activate to sort column ascending"), sSortDescending: gettext(": activate to sort column descending") }, sUrl: "" } }); The debugger shows that $.prototype.DataTable.defaults.oLanguage has been updated as expected but when I initialize the table with zero configuration the translation does not work. Thank you for taking the time to read this. Any help would be much appreciated.
- 28th Nov 2013jquery datatables default sort by using asSorting (not aaSorting)Hi, could i sort datatable by using asSorting only (ie, not aaSorting) here is my work on http://jsfiddle.net/dsea/SFRXL/22/ and you see, the 1srt column is 'asc' and not 'desc' like I expected [code] $(document).ready(function() { $('#example').dataTable( { "aoColumns": [ { "sType" : "numeric", "asSorting" : ["desc", "asc", "desc"] }, { "sType" : "string" }, null ] } ); } ); [/code] thanks a lot dsea