Search
19115 results 14151-14160
Forum
- 4th Mar 2014Newly created row not displayedWhile adding new row in middle of the table, pagination entries is updated with new tr count but row is not visible in screen. I am able to see all row in console by using var nNodes = oTable.fnGetNodes( ); console.log(nNodes); Please help me
- 6th Dec 2013Datatables, jEditable and MVC C# server creates invisible tableHello everyone. I've been trying to implement a editable table and for one minor detail everything works fine. When I edit the value of a cell I get a new hidden table underneath the table that was edited. This table seems to contain only one row, the last row of the "real" table. This of course results in a web page that grows a little bit for every edit you do. At first I thought it was something wrong with my JavaScript code but I then replaced all my client side code (both JavaScript and html) with the one found here: [quote] http://www.datatables.net/release-datatables/examples/api/editable.html [/quote] I should probably also mentioned that I did replace the url in the example to /Some/Url and that I'm using N2CMS. Don't know if the last bit is relevant, but if it is I've mentioned it... As long as I return an empty string from my server it works in that I don't get the extra hidden table. I also of course get empty cell i my table. When I return a non-empty string I get this strange behavior with the extra table and the text returned ends up in the edited cell. this code gives the hidden table: [code] public string EditTable2(int? id, int? row_id, string value, int? column) { return value; } [/code] whereas this doesn't [code] public string EditTable2(int? id, int? row_id, string value, int? column) { return ""; } [/code] I took a look at the response sent from the server, with the help of Firebug and DragonFly, in the example linked above and tried to make my response look the same by doing this: [code] public string EditTable2(int? id, int? row_id, string value, int? column) { return value + " (server updated)"; } [/code] but all that did was to give me some extra text in the table cell. The extra table remained. Oh, one more thing. This happens in Firefox, Opera/Presto, Opera/Chrome, Google Chrome and Internet Explorer 11. All this points to there is something wrong with my response from the server and obviously I'm missing something but I just can't figure it out. Is there any one who knows what I'm doing wrong? About the notice for a link to a page showing the problem. I can't put one here, you need an user account to access it, but if you are reading this Alan I can e-mail you the information if you wish. Any help very much appreciated! /Fredrik
- 1st Oct 2013Using datatables created items in jquery.Hi All, I have a pretty nice table but need to interact with that table via jquery. for each row on the table I have used customFnRowCallback to inject an image: [code] if (aData[9] >0 && aData[9] < 4) { $('td:eq(9)', nRow).html(''); } else { $('td:eq(9)', nRow).html(''); } return nRow; [/code] When this renders out, I can see using chrome inspect element the following html: [code] [/code] I want to get a mouse over event on this using jquery but I just cant hit it! I have tried: [code] $("#testing").on("mouseenter", function (e) { e.preventDefault(); alert("hi"); [/code] and [code] $(".holdertips").on("mouseenter", function (e) { e.preventDefault(); alert("hi"); [/code] Neither of these ever give me the alert.. Can anyone help? many thanks
- 11th Jul 2012read row from ajax created databaseI'm creating DataTable through ajax. After the table is displayed, I let the user select any row. I need to detect this row (with the fnGetSelected?!) function, after that I need to read the information on that row. But it doesn't work. Can you kindly help me?
- 23rd Oct 2010returning a datatable created in a popup to the parent windowI am creating a datatable in a popup window and I need to return it to the parent window. Everything works fine. However, when I click few input checkbox and use the serializer, it's returning empty value. Here's my code that I use to return datatable to the parent window [code] var parent = $(window.opener.document.body); var csvdata = $(parent).find('#csvdata'); var thistable = $("#mytable"); $(csvdata).html(thistable); var parent_table = $(parent).find('#mytable'); var contactsTable = $(parent_table).dataTable({ "bProcessing": true, "bJQueryUI": true, "bSortClasses": false, "sEmptyTable": "No contacts!", "sScrollY": "120px", "bPaginate": false }); contactsTable.fnAdjustColumnSizing(); window.opener.contactsTable = contactsTable; //This is how i'm passing the table from popup to parent $(csvdata).show(); window.close(); [/code] Once it's passed to the parent window, here's my code that I use in the parent window [code] contactsTable = $("#mytable").dataTable(); sData = $('input', contactsTable.fnGetNodes()).serialize(); alert("data = " + sData); [/code] data is empty for some reason. It should return the serialize value of the contacts selected in my table which was passed from the popup to the parent. Strange thing is that when I test this code in Firebug console, it seems to run fine and actually returns the serialize value. Can you help?
- 2nd Aug 2010Dinamic created tables with ajax, set it to datatablesa php who dinamically creates it). On the .load()
- 8th Jun 2010Created search fieldHello, generated html for search should have label - something like that Hledat: That way if anyone click on Hledat text input field receive focus Petr
- 24th Apr 2026v3 beta - header width while mounting Vue components in cellwhere the warning was created) (node:26) ExperimentalWarning: WASI is
- 16th Apr 2026override select highlight colorThe test case I created used the Download Builder
- 12th Apr 2026Hover is not highlighting rowsTHE 'DATA' CLASS ADDED */ createdRow: function ( tr ) { $(tr).addClass('data'); }, but