Search
3647 results 371-380
Forum
- 5th Nov 2014updating datatables cellsThank you allan. That was really helpful :) . I appreciate it.
- 3rd Oct 2014How to render non-DataTable tables inside DataTable cellsI've found a work-around. Rather than using the html < table> tag, the tables can be rendered CSS and div/span tags instead of using < table> tags (see http://www.vanseodesign.com/css/tables/ for more info). Here is an updated jsfiddle showing my working embedded tables that have fresh clean css (no inheritance from the DataTable). http://jsfiddle.net/eexw71as/
- 26th Sep 2014how to align content in the middle of the cells? please help methanx allan its up and running.
- 5th Sep 2014Adding data to a cell's dataAhh... perfect! Just what I needed, thanks a lot Hans! :)
- 24th Jul 2014How to update a cell's valuePossibly you could use row().invalidate(), but to be certain we'd need to see the full code - and ideally a test case. Allan
- 12th Mar 2014mRender to alter a cells display colorfor others: [code] /* Apply the jEditable handlers to the table / $( ".editable", oTable.fnGetNodes( ) ).editable( "/rates/detail/save", { callback: function( sValue, y ) { / Update the 'data-changed' attribute in the td node / this.setAttribute( 'data-changed', 'true' ); / Set the color to show the td node was changed / this.style.color = 'blue'; / Set the td node data */ var mPos = oTable.fnGetPosition( this ); oTable.fnUpdate( sValue, mPos[0], mPos[1], true ); /* Restore bootstrap popover */ $( oTable.fnGetNodes( ) ).children( 'td.editable' ).popover( { // This is what matters!! "container": "body", "animated": true, "placement": "bottom", "trigger": "hover" } ); }, submitdata: function( value, settings ) { return { "_token": "{{ csrf_token() }}", "ratesheader_id": "{{ $RatesHeader -> id }}", "prtnum": this.parentNode.getAttribute( "data-prtnum" ), "trmnum": this.getAttribute( "data-trmnum" ) }; }, "height": "14px", "select": true } ); [/code]
- 5th Feb 2014How to update changes to cells in DataTables with Server Side?Thanks Allan. I ended up just passing that sData generated string to another page to update SQL database.
- 30th Jan 2014why color of cells of two columns are different ?Thank you Allan, that was helpful.
- 9th Jan 2014How to prevent sorting on certain html elements inside the header cells?In the mean time I have figured out I can resolve this by using: [code]e.stopPropagation();[/code] on each element that I don't want to execute sorting...
- 29th Aug 2013Getting row data from cells works fine until selecting a new page of dataWOW, I figured it out: $('#assignments').dataTable({ "sScrollY": "300px", "bPaginate": true, "bProcessing": true, "bServerSide": false, "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], "aoColumnDefs": [{ "sWidth": "35%", "aTargets": [0] }, { "sWidth": "50%", "aTargets": [1] }, { "sWidth": "15%", "aTargets": [2]}], "fnDrawCallback": function () { $('#assignments tbody tr').each(function () { var sTitle; var rowMousePos = $('td', this); var insGrp = $(rowMousePos[0]).text(); var products = $(rowMousePos[1]).text(); var assignment = $(rowMousePos[2]).text(); sTitle = insGrp + products + assignment; this.setAttribute('title', sTitle); }); } }); /* Apply the tooltips */ $('#assignments tbody tr[title]').tooltip({ "delay": 0, "track": true, "fade": 250 }); Brilliant, from here I should be able to work out how to get the selected option of the select for $(rowMousePos[2].text();