Search
43844 results 7081-7090
Forum
- 19th Dec 2011[newbie] table not working??Well guys, If I may ask where do I put media folder?
- 16th Dec 2011Ajax Serverside data only gets displayed if HTML table has predefined header rowWill do, thanks again Allan!
- 12th Dec 2011No error but no table createdNevermind, stupidly forgot the # on the id.
- 17th Nov 2011Moving the element outsite of the tableAnd what about pagination and number of element by page?
- 26th Oct 2011Disable scrolling on table featuring colspansDataTables doesn't support or work with colspans in the data rows. (you can use colspans in the header).
- 25th Oct 2011Comparing two table valuesDo the rows have some kind of unique id column you can use to look them up? If so you can do something like this: [code] var mainTable = $('#mainTableId').dataTable(); var windowTable = $('#windowTableId').dataTable(); var allDataInMainTable = mainTable.fnGetData(); var allDataInWindowTable = windowTable.fnGetData(); for (var i in allDataInMainTable) { var mainData = allDataInMainTable[i]; for (var j in allDataInWindowTable) { var windowData = allDataInWindowTable[j]' if (mainData.id == windowData.id) mainWindow.fnUpdate(windowData, i); } } [/code] If they don't have a column with a unique id you would have to do something other than "mainData.id == windowData.id" to tell if they were the same row. Personally I would use something like Backbone.js models and have the grids bind to change events to keep themselves in sync, though if you aren't already using backbone doing something like that is probably overkill for what you are trying to accomplish.
- 20th Oct 2011How do I manually edit the theming/formatting of a table?Nevermind, I got it. Apparently another developer was including some other stuff in a different file. I tracked it down and removed it. Thanks again!
- 10th Oct 2011Extra data and table redraw problemProblem is solved.
- 3rd Oct 2011Table sorting issueHi Peter, I want to say thanks very much for the creator of the plugin. It is very useful. My pleasure - great to hear that you are finding it useful! For your question - what you want to do is use the natural sorting plug-in: http://datatables.net/plug-ins/sorting#natrual . That will "chunk" your data to have it sorted as you would expect. Allan
- 22nd Sep 2011Removing whitespace in table headersAllan, Just to give you a heads up - I tried the 1.8.3.dev file that's currently on the site and it still does this for me in the header and footer. Plus, I found that if I added the following at line 2817: [code] anCells[i].innerHTML = $.trim(anCells[i].innerHTML); [/code] If got rid of the extra spaces in the footer cells. Hope that helps.