Search
23433 results 2911-2920
Forum
- 26th Mar 2012How to add icon in columnsI tried to get going until here.. The image tag ends up looking like this: [code] "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { var data = aData[3]; var imgTag = ''; $('td:eq(3)', nRow).html(imgTag); return nRow; },[/code] A requirement is also to have modal dialog appear on hover. I need to pass the data to the modal. I tried different possibilities of declaring a function on mouseenter in the span tag and then pass it to the modal but that didn't work for me. Below is the jquery code to open the modal. [code] $(".mytext").mouseover( function() { var width = 250; var height = 270; var posX = $(this).offset().left - $(document).scrollLeft() - width + $(this).outerWidth(); var posY = $(this).offset().top - $(document).scrollTop() + $(this).outerHeight(); //alert(posX + ", " +posY); $(".mytext").dialog({ resizable:false, width : width, height : height, position : [ posX, posY ] }); }); [/code]
- 23rd Mar 2012How to add a check all function with checkboxes in columnsThank you very much Allan for your inputs, I am going to use this bUseRendered before my another fnRender. I appreciate that much. Best regards
- 6th Mar 2012How to implement sorting of columns with checkboxes with a datatable the has an add row featureFound out that the problem is when the sorted column has a checkbox when you add a new row dynamically and your using this solution to sort your table http://datatables.net/release-datatables/examples/plug-ins/dom_sort.html $.fn.dataTableExt.afnSortData will return lacking 1 row, the newly created row which is not yet created will not be included yet. So thats where the error starts. What I did was a little hack I recorded when the users clicks the add row button then when $.fn.dataTableExt.afnSortData is invoked I will check a variable to know if the add row button was clicked, if yes then I will add the initial value of that column so that there will be no missing row returned by $.fn.dataTableExt.afnSortData
- 18th Feb 20122 search boxes each searching different columnsThank You So Much!!
- 22nd Jan 2012Shorten Columns via php-substr in Server-Side PHP Script?No idea? Anybody?
- 17th Jan 2012columns not resizing to fill table widthYes please :-) Allan
- 17th Dec 2011columns width increasing in chrome browserthis problem occurs only when i am using "DataTables complex header example (row and colspans)".
- 13th Dec 2011Scroll to bottom with Fixed Columnshttp://datatables.net/forums/discussion/5839/scroll-with-fixedcolumn/p1?post#Form_Body
- 29th Nov 2011hiding columns with ColVis table widthThank you :-). Great to hear that did the job for you! Regards, Allan
- 15th Nov 2011Sorting columns with imagesforce that column to sort as string. it should work. http://www.datatables.net/usage/columns#sType it was probably auto-detecting 'html' type, which strips/ignores the html [code] "aoColumnDefs": [ { "sType": "string", "aTargets": [ 0 ] } ] [/code]