Search
23531 results 2921-2930
Forum
- 1st May 2012Columns resizing on filter, sort, updateThanks again Allan, I can confirm that the suggestion does work without a hitch. I actually find the table refreshes much better with a fixed wrapper. By specifying the width of a wrapper and setting the table to 100%, the resizing column problem is resolved. I have to tweak my paginate CSS since my table is 6000px wide. [code].dataTables_paginate, #basftable_paginate { float:left !important; position:fixed; margin:10px; right:0; }[/code] This helps keep the pagination options available to the viewer. Otherwise, it's way over to the right.
- 20th Apr 2012more then 25 columns in server side 404 Not FoundYes that is an option - although I think just setting DataTables to use POST rather than GET is probably more immediately accessible. fnServerParams could be used to rewrite the variables if you do want to do that. Allan
- 17th Apr 2012CSS is lost after destroy and dynamic columns questionHi Allan, I solve my problem and I described the solution here : http://www.datatables.net/forums/discussion/9516/destroy-the-datatable-in-order-to-recreate-tabs-use#Item_4 Thanks Bastien
- 6th Apr 2012Sorting columns with date(Format : MM/dd/yyyy) with datatables not workingYou mistake in wrong valulues. Try this var x = usDatea[2]365 + usDatea[0]30 + usDatea[1]; var y = usDatea[2]365 + usDatea[0]30 + usDatea[1];
- 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