Search
43675 results 6851-6860
Forum
- 9th Mar 2016Responsive table with row reorder. Reorder handle conflicts with the collapse expand buttonDo you mean the padding that is added to allow space for the Responsive icon? That padding would be applied to any column (it isn't actually padding - the icon does actually take up space in the layout). It would still be on the left in the final column - you would need to alter the CSS if you want it to appear on the right. Allan
- 2nd Mar 2016I am looking for a simple table filtering example that demonstrates how to...Thank you. Exactly what I was looking for!
- 1st Mar 2016i have editor dataTables and i try to make custom button in table toolsThis appears to be a duplicate of the discussion in your other thread about this topic. There is no download button built into the new Buttons extension - as discussed in the other thread you would need to define a custom action that will perform the download. Allan
- 17th Feb 2016Table formatting - Extra sub-rowYou could possibly use a draw callback (drawCallback) to insert the extra rows, but without using a child row, that's about as good as it gets at the moment. Allan
- 12th Feb 2016table always displays "Showing 0 to 0"Solves !
- 12th Feb 2016I'm trying to change the colour of the alternate rows in my tableI've added my own custom css to color things in a manner that I wanted. I would inspect the element, determine which class was causing the color, and then create my own css to replace the native one. The downside is that there can be a number of them because highlighting is done on odd, even, and then column selection also.
- 29th Jan 2016rowId from event driven tableThe data var is an array here. This did the trick. var t = $('#mlh').DataTable( { createdRow: function( row, data, dataIndex ) { $(row).attr('id', data[0]) } }); Thank you!
- 29th Jan 2016Can I make a colum non editable in table view but editable in record viewIt looks like you might have already done it - is that correct? You are using: $('#myTable').on('click', 'tbody td:not(:first-child, :nth-child(3))', function (e) { editor.inline(this); }); which looks correct to me. Allan
- 26th Jan 2016Using natural table sortingI'm surprised that doesn't work with the natural sorting plug-in, but I guess its a limitation in the natural sort algorithm used. I'm afraid I don't have a fix for it just now - you might want to take a look around the web to see if anyone else has written a natural sort for Javascript and you could hook that into Javascript though. Allan
- 23rd Jan 2016Change button text in a tableSolved... Inside the if(row.child.isShown) adjust the innerHtml of the button and similarly in the else e.g. using the above linked example $('#example tbody').on( 'click', 'button', function () { var data = table.row( $(this).parents('tr') ).data(); alert( data[0] +"'s salary is: "+ data[ 5 ] ); if (row.child.isShown()) { this.innerHTML = "Show"; } else { this.innerHTML = "Hide"; } } );