datatables

Datatables headers not full width on page load

那年仲夏 提交于 2019-12-29 07:03:05
问题 When loading my web application page with datatables, the datatable is loaded but the <thead> row is not full width of the table. After editing the data, or searching in the datatable search, the header jumps to full width. See picture. Any solution or workaround for this? Screenshot of datatable: My normal datatables are fine, but this one is loaded within a modal. Code modal: <!-- Get selected shops modal --> <div id="SelectedShopsModal" class="infomodal"> <div class="shops-content"> <h2>

popover on hover not working on second page of datatable

情到浓时终转凉″ 提交于 2019-12-29 06:55:09
问题 I added content of one column dynamically... for (var i = 0; i < data.length; i++) { data.referred_by='<a href="#" data-toggle="popover" class="" title="'+temp[i].referred_by+'"data-trigger="hover" data-content="Total Referrals :'+temp[i].as_count+'">'+temp[i].referred_by+'</a>' } and Following code is of creating datatable $('#datatable4').dataTable({ 'paging': true, // Table pagination 'ordering': true, // Column ordering 'info': true, // Bottom left status text "aaData" : data, aoColumns:

Implementing Vue.js + DataTables properly

女生的网名这么多〃 提交于 2019-12-29 04:04:24
问题 Im trying to implement Vue.js + jQuery's DataTables but there's a weird things happening. Check this fiddle on firefox (not working on chrome) : http://jsfiddle.net/chrislandeza/xgv8c01y/ when I change the state of DataTable (e.g. sort, search, etc.): Newly added data on the list disappears The DOM is not reading the directives or the vue properties I'm pretty sure anyone who tried to mix vue.js+datatables experienced this problem. what did you do to solve this? or is there a pure Vue.js

Implementing Vue.js + DataTables properly

蹲街弑〆低调 提交于 2019-12-29 04:04:23
问题 Im trying to implement Vue.js + jQuery's DataTables but there's a weird things happening. Check this fiddle on firefox (not working on chrome) : http://jsfiddle.net/chrislandeza/xgv8c01y/ when I change the state of DataTable (e.g. sort, search, etc.): Newly added data on the list disappears The DOM is not reading the directives or the vue properties I'm pretty sure anyone who tried to mix vue.js+datatables experienced this problem. what did you do to solve this? or is there a pure Vue.js

How to display the secondary records in the data table child row with respective id?

旧巷老猫 提交于 2019-12-29 01:47:26
问题 I am using CodeIgniter and data table with child row. What I am doing is I have a master table with a primary member and a secondary member. Primary member can identify using member_type=1 and secondary member member_type=2 . Both members are connected with the relation table. I am able to display the records in the data table with the primary member as well as a secondary member. Now I am using the data table child row plugin(https://datatables.net/examples/api/row_details.html). I have to

jquery datatables hide column

无人久伴 提交于 2019-12-28 03:33:07
问题 Is there a way with the jquery datatables plugin to hide (and show) a table column? I figured out how to reload the table data: using fnClearTable and fnAddData . But my issue is that in one of my views for the table (e.g. a hidden mode) I don't want to show certain columns. 回答1: You can hide columns by this command: fnSetColumnVis( 1, false ); Where first parameter is index of column and second parameter is visibility. Via: http://www.datatables.net/api - function fnSetColumnVis 回答2: if

DataTables - Not working when added colspan for the last column

老子叫甜甜 提交于 2019-12-28 02:55:25
问题 I've a problem using DataTables. When i add colspan for the last column, the datatable plugin wont get applied to the table. If i remove the colspan for the last one and put it to any other column, it works. For example - <table width="100%" border="0" cellspacing="0" cellpadding="0" id="stu_data_table"> <thead> <tr> <th> </th> <th colspan="2"> </th> <th colspan="2"> </th> </tr> </thead> <tbody> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </tbody> </table> $('#stu_data

Implement JQuery Datatable in ASP.NET GridView

拥有回忆 提交于 2019-12-28 01:29:50
问题 I want to use "JQuery Datatable" with ASP.NET GridView. I tried something i found, but it didn't work. GridView - <asp:GridView ID="gridViewTasks" runat="server" AutoGenerateColumns="false" CssClass="table table-striped table-bordered dt-responsive nowrap" Width="100%"> <Columns> <asp:BoundField DataField="task_id" HeaderText="TaskID" Visible="false" /> <asp:BoundField DataField="task_description" HeaderText="Task Name" /> <asp:BoundField DataField="task_detail" HeaderText="Task Detail"

jQuery DataTables - Filter column by exact match

自作多情 提交于 2019-12-27 22:14:49
问题 Trying to only display exact matches to the search term entered in the search bar. For instance, I have a search bar that filters by ID#. I want only records that match the exact # entered to display. So if 123 is entered, I don't want 12345 , 91239 , etc etc to be displayed. Only 123 . Saw some info about bRegex on the FAQ page, but it's not working for me. Any ideas? 回答1: This will give you exact result for a column. table.column(i) .search("^" + $(this).val() + "$", true, false, true)

how to load millions rows, little by little with ajax in datatables

ε祈祈猫儿з 提交于 2019-12-25 18:37:25
问题 Seeing datatables I cannot achieve this goal. For now I can load them in different ways, with ajax (by using the server side) different rows and with different orders, but for now I cannot load rows for example in 4 or 5 times making multiple request ajax ( I want to use the scroll to load little by little). How could I do this? 回答1: What about modifying your ajax to load x number of rows, starting with the first, then when the top offset of the last entry comes into view you could fire