Search
43745 results 6871-6880
Forum
- 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
- 11th Jan 2016Don't work sorting tableSee this blog post for details on sorting date times in non-ISO8601 formats and an explanation of why this is required. Allan
- 8th Jan 2016Data table with large amount of data.See the speed FAQ. Allan