Search
915 results 391-400
Forum
- 18th Dec 2010Purely 'data' tables as opposed to 'presentation' tables - is this possible?row: We can use 'fnRowCallback' to trigger the function
- 28th Nov 2010Weird Problem, Needing some helpis the code: [code] "fnRowCallback": function( nRow, aData, iDisplayIndex
- 22nd Nov 2010add tr id after each row creationive done it this way. This makes the id of each row unique using the iDisplayIndex. [code] "fnRowCallback": function( nRow, aData, iDisplayIndex ) { $(nRow).attr('id','rowid'+iDisplayIndex ); return nRow; } [/code] Hope it helps! -Matthew
- 8th Nov 2010make DataTables more jquery likethe magic. write a fnRowCallback that actually does the
- 5th Nov 2010How to output the result of a functionUse fnRowCallback as described in http://datatables.net/forums/comments.php?DiscussionID=3283 , but change the actual value of the field according to your function instead of the class?
- 5th Nov 2010different rows BG color according to contentmuflo, you could do this with the fnRowCallback, see http://www.datatables.net/usage/callbacks for usage, but basically [code] $('#example').dataTable( { "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { if ( aData[4] == "given word" ) { $('td:eq(4)', nRow).addClass( 'particular-background-color' ); } return nRow; } } ); [/code]
- 24th Oct 2010Is there a way to set the initial starting record?sAjaxSource": "/QuakeMap/Single/ServerProcessing.aspx", "fnServerData": fnDataTablesPipeline, "fnRowCallback": function (nRow, aData, iDisplayIndex)
- 23rd Oct 2010Select first row when first init and after paginationI found a callback would work for this "fnRowCallback": function (nRow, aData, iDisplayIndex) { /* Append the grade to the default row class name */ if (iDisplayIndex == 0) $(nRow).addClass('row_selected'); return nRow; } Chris
- 18th Oct 2010Searching IssuebServerSide": true, "sAjaxSource": "includes/server_processing.php?section=task&mode=&typeofAccess=&iDisplayStart=0&iDisplayLength=10", "fnRowCallback": function( nRow, aData, iDisplayIndex
- 17th Oct 2010Need to add columns with calculated data to server side processed tableon the client-side - use fnRowCallback ( http://datatables.net/usage/callbacks#fnRowCallback ) to process each