Search
23531 results 3001-3010
Forum
- 20th Apr 2016rowcallback fuction executes infinite times, when I am going to hide columns using fnSetColumnVis?This is really a big issue of using Datatable, Please suggest me the relevant answer
- 29th Mar 2016Stop striping when responsive collapses columnsHi guys I am using Responsive and autocollapsing. As soon as a column is collapsed, it is shown as a sub-row. When this happens, I don't need striping as the collapsed column provides a differentiator between the other rows. Is it therefore possible to turn off striping when at least one column is collapsed? TIA Del
- 14th Mar 2016How to auto update a column from other columnsFor example: I have column a, b, c and d. Column d will be hidden and the value = a + b. How can I bind column d with column a and b, so that whenever column a or column b is edited or a new row is added, column d's value will be automatically generated and write into database? Great thanks
- 10th Mar 2016Fixed Columns and DT_RowId and DT_RowDataHi all. I can't seem to find anything about this but it looks like a very weird issue with the FixedColumns plugin. * Included libraries: * DataTables 1.10.11, Buttons 1.1.2, FixedColumns 3.2.1, Select 1.1.2 I use serverside to get data and when I don't use FixedColums, or use FixedColumns with leftColumns set to 0 the is fine. The id and the rowdata are available. "fixedColumns": { "leftColumns": 0, "rightColumns" : 1 }, <tr id="row_15" class="odd" role="row"> When I use fixedColumns with leftColumns set to anything but 0, the is different, with no id or data. "fixedColumns": { "leftColumns": 1 }, <tr class="odd" role="row" data-dt-row="0" style="height: 30px;">
- 12th Feb 2016Sorting columns, fixed column<thead> <tr> <th class="nosort">#</th> <th>Name</th> <th>Age</th> <th>Location</th> </tr> </thead> I have a while loop that produces 1 | Donald | 37 | Sidney 2 | Janice | 54 | London 3 | Alice | 44 | California ID is incrementing i++. The 'nosort' works fine, I cannot click the #. However, when I click Name for example, the following happens. 3 | Alice | 44 | California 1 | Donald | 37 | Sidney 2 | Janice | 54 | London As you can see, the # "changes". I want the # column to be static, only displaying the position so it won't change when I sort by name or age for example. How can I achieve this?
- 1st Feb 2016accesing multiple columns while renderHi, { "targets": 7, "data":"active", "render": function ( data, type, full, meta ) { return (data == "Yes") ? 'Inactivate': 'Activate'; } how can i access id from my table so that i can edit the row.s e.g href="edit.php?id='+data+'"; can i pass like below to access the id? "data":"active", "data":"id"
- 10th Jan 2016When I unhide all columns, after hiding each column with colvis, the overall table width changesFor instance, if the initial table width is 500px when the table is first drawn, if I then hide each column individually with colvis then unhide each column with colvis, I get a table with an overall width of 200px or so. Any ideas why this is happening? how can I get it so the table is 500px again?
- 15th Dec 2015Remove Duplicate Header ColumnsHi, I am using two grids in in my asp.net application. And one of the grids is duplicating the header. Facility Group Submit Date Submit By Request By User Name Title Email Approved Approved Date Actions Facility Group Submit Date Submit By Request By User Name Title Email Approved Approved Date Actions This is how I am setting up the grids: $(".gvv").prepend($("").append($(this).find("tr:first"))).dataTable({ "lengthMenu": [[3, 5, 10, 25, -1], [3, 5, 10, 25, "All"]], bJQueryUI: true, sPaginationType: "full_numbers", "bSort": false, "bFilter": true }); How can I remove the duplicate header? Any help will be very appreciated.
- 10th Dec 2015How to display a hyperlinked image in 1 column when the image url and hyper link are in 2 columns?Hi, I have a url for an image in column 1. I have a hyper link url in column 2. I would like to display the image in column 1 and use the hyperlink from column 2 to link the image to an external url. How do I accomplish this task? Wyatt
- 10th Dec 2015How to get the columns in the initComplete eventI am using Jquery datatable to generate a empty table that i need to plot shifts into from some ajax data. My headers contains dates which i need to compared to my ajax data objects to see if they are the same, then insert a shifts html element. Unfortunately i have only been able to grab the Settings object in the callback, but it is ill advised to use it and hope for it to last, so any other way of doing this would be greatly appriciated. Thanks in advance