Search
11152 results 7431-7440
Forum
- 29th Aug 2013Columns and IDs SortingI'm worried that this won't do anything. I have 20+ tables and share similar table headers on some of them. I want it to look for each class and if it matches one to an array of classes then it makes that table header column nonsortable.
- 22nd Jul 2013Sorting secondary table by values on a column in first table.Ok so I think I have solved it, ill explain what I did as this seems to be unexpected. From what I could gather about how the UI was reactivating to the events it seemed like the second table was referencing the first table. What I was doing originally was the following: [code] $('table[data-datatable="1"]').DataTable(this.options.dataTable); [/code] I suspected that this could be an issues so I changed it to: [code] var opts = this.options.dataTable; $('table[data-table="1"]').each(function(idx, table){ $(this).dataTable(opts); }); [/code] This would allow me to create a single instance of DataTable per table. This actually stopped causing a lot of issues and also removed that error above regarding fnGetData. I also had to restructure the the handle to pass over a list of serials to the second table is it was always defaulting to the the first pages results and not all pages. [code] if(id == 'contracts') { console.log("Setting up table filter for contracts"); /** * Listen for the keyup event */ input.keyup(function(e){ /** * We need to collect the contract numbers from the filtered results. */ var nodes = $('table[data-tableid="contracts"]').dataTable()._('tr', {"filter": "applied"} ); /** * Loop the nodes and retrieve the ID's */ var serials = []; for(var i = 0; i < nodes.length; i++) { /** * Requires testing on smaller devices as columns may change with responsive design. */ serials.push(nodes[i][5]); } /** * Fetch the contracts line table. */ var lineTable = $('table[data-tableid="contractsline"]').dataTable(); /** * Update the contracts line with the filter from the contracts table. */ lineTable.fnFilter(serials.join("|"), 7, true, false); }); } [/code] If any developers or admins require further information feel free to ping me on my email address I registered with. Thanks.
- 29th May 2013Checkbox Column Sorting not working with jQuery 1.9.xThank you Allan for the quick response, it solved my problem!
- 27th May 2013colspan sorting problem - last column not sortable after adding a columnHi, Allan, As you requested, I created a little example to show this weird behavior, though the 'details_open' and 'details_close' pictures are missing in the example. Here is the link of the example. http://live.datatables.net/ohamin/4/edit#javascript,html,live Best wishes, Arthur
- 22nd Apr 2013Initial sorting on date-rangeOk thanks anyway :-).
- 17th Apr 2013Remove sorting on column, but keep textCan you link to a test case please. What you describe should be quite possible. Allan
- 8th Apr 2013bSortable: false doesn't disable sortingSeems to work just fine for me - http://live.datatables.net/orawup/edit#javascript,html . Can you link to a test page please? Allan
- 4th Apr 2013Column sorting clones the header somehow...solved. it has to do with my injections into the rendered table, which broke the rendering cycle a bit.
- 26th Mar 2013Help with Column Filtering / sortingHi, can anyone help with this - it would be much appreciated. Cheers
- 21st Feb 2013Problem with serverside processing, sorting, filtering and refresh of the tableIn fact problem was due to the fact that I didn't increment the sEcho in the response of my servlet.........