Search
43891 results 6881-6890
Forum
- 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"; } } );
- 13th Jan 2016LIMIT a nested tableThanks for the suggestion!
- 12th Jan 2016HI All i am unable to load basic data in table i am getting error please give ans ASAP.Without a link to a test case (which is clearly stated in the forum rules) there is little help we can offer. Most likely you are loading jQuery multiple times on the page, which a fairly common error. Allan