Search
43826 results 7171-7180
Forum
- 28th Dec 2016Table values page centered when scrollX=trueWhen scrollX= true for columns less than page size,t he value cells do not line up with heading cells.
- 24th Nov 2016Table with header and data columns not aligned.Hi I´m facing a problem with the columns of header not aligned with the same columns for data rows. What do I need do fix it ?
- 23rd Nov 2016[v1.9] Updating object returned by fnGetData() to update table dataI am using DataTables to display some objects. At the moment, I am doing the following to update the attribute attr in a row: var data = DT.fnGetData(tr); data.attr = val; DT.fnUpdate(data, tr); This works, but seems quite inelegant. Instead, I think I can just modify the object directly: DT.fnGetData(tr).attr = val; DT.fnDraw(); This code should work as well, as long as the object returned by fnGetData is a direct reference to the internal object (and not a copy). Can anybody confirm whether this will work, or whether this is a bad idea? Is there a better way of doing this?
- 18th Nov 2016Delete an object and update table using Knockout JSI've been following this link https://datatables.net/dev/knockout/ on using Knockout with Datatable. On the last part the only way to delete a record is only with shift(). Is there like any other way to delete a certain index in the datatable with Knockout?
- 31st Oct 2016Hiding table cells overflowed contentHi, I'm using jquery datatable, and want to hide cells text overflow, Is there a way to do this **without ** assigning table-layout to 'fixed'? Thanks, Riki.
- 19th Oct 2016Column in table as an object property- returns alert if not initHi, here is my setupTable. var setupTable = function () { return $("#myTable").dataTable({ sAjaxSource: config.urls.ajaxSource, sSelectionMode: 'multipleCheckOnly', sDom: '<"$grid-toolbar"s>tr<"dataTables-footer"ilp>', aoColumns: [ { mData: "DeliveryAddress", sWidth: "300px" }, { mData: "Title", sWidth: "180px" }, { mData: "Quantity", sWidth: "60px" }, { mData: "DeliveryAddressDetails.CityName", bVisible: false, bSearchable: false }, { mData: "DeliveryAddressDetails.ZipCode", bVisible: false, bSearchable: false, } ] }); }; ajax returns data with some object as a one of property (DeliveryAddressDetails) but if my json result has a row with not set DeliveryAddressDetails I get javascript alert DataTables warring - requested unknown parameter How to stop it ? in this case i would like to have just null or nothing in DeliveryAddressDetails.ZipCode and DeliveryAddressDetails.CityName column
- 19th Oct 2016How to Customize Data Table Export Excel FormatI want to customize Export Excel Format. Please find attached existing and required excel format images
- 19th Oct 2016Data object not displaying data in my tableHi Peeps Completely noooob at this but if anyone can assist me i would highly appreciate it. I have tried various threads to and nothing is working. Please HELP... If you have any suggestions of how ever else i can do it, please state so, working on a REST API thats needs authentication sent as well. Example of my json object (Its rather a huge source so im cutting it short just to give you an idea of what im working with): { objects: [ { id: "2717eb66-95d3-11e6-860e-001e67260782", type: "alert", updated_at: "2016-10-19T08:08:21Z", display: "You Win", sighting_id: "26341|1476864434252|1", source_system_id: "CLE", alert_id: "27d0992dfba243cab09ebfa18503b89e", timestamp: "2016-10-19T08:07:16Z", time_string: "10:07", alert_type_id: { key: 2, display: "Winner" }......... here is my Javascript: var xhr = new XMLHttpRequest(); xhr.open("GET", api_url, true); xhr.withCredentials = true; xhr.setRequestHeader("Authorization", 'Basic '+btoa(username+':'+password)); xhr.onload = function() { var obj = jQuery.parseJSON(xhr.responseText); $('#maintable').dataTable({ "processing": true, "aaData": obj, "aoColumns": [ { "mData": "objects.id" }, { "mData": "objects.type" }, { "mData": "objects.updated_at" }, { "mData": "objects.display"}, { "mData": "objects.timestamp"} ] }); }; xhr.send(); My Html: <div class="container"> <table id="maintable" class="table table-striped table-condensed"> <thead> <tr> <th>id</th> <th>type</th> <th>updated_at</th> <th>display</th> <th>timestamp</th> </tr> </thead> <tfoot> <tr> <th>id</th> <th>type</th> <th>updated_at</th> <th>display</th> <th>timestamp</th> </tr> </tfoot> <tbody> </tbody> </table> </div>
- 6th Oct 2016Column width or Table width not changingClass Subject Max Min Start date End date Action create create $(document).ready(function() { $('#example').DataTable()( { "aoColumnDefs": [ { "sWidth": "200%", "aTargets": [ 7 ] } ] } ); } );
- 8th Sep 2016Multi select in individual column select input Data tableHow can we implement multi select in individual column select input API?