Search
11455 results 2051-2060
Forum
- 16th Sep 2010How to update the table after filter the row containing a "primary key value".Dear all, I solved in this way, but i dont' know if the best way!! [code] $('table tr:contains("KEY_STRING")').each(function(){ oTable.fnUpdate('lalalal',(oTable.fnGetPosition(this)), 3) }) [/code] thanks, Antoino
- 17th Aug 2010disable Search Filter Text boxAh, sorry I missed that. That works perfectly. Thank you.
- 13th Aug 2010BUG: after upgrade to 1.7 filter does not return all matchesOn further investigation with help from noel, it would appear that the issue is that IE (and Opera) put a newline character after a tag when I read the content from a cell to decode HTML entities. This breaks the search unfortunately. The fix is to find this line: [code] oSettings.asDataSearch[i] = nTmp.textContent ? nTmp.textContent : nTmp.innerText; [/code] And add this just after it: [code] oSettings.asDataSearch[i] = oSettings.asDataSearch[i].replace(/\n/g," ").replace(/\r/g,""); [/code] I'll release a bug fix version of DataTables with this included it it in the near future. The bug will only be triggered in rows which have HTML entities and BR tags in them. Regards, Allan
- 7th Mar 2010Adding other elements to filter area breaks searchingDataTables attaches a keyup listener to that text box - so anything that causes that to be removed would effect this. Visual Event ( http://sprymedia.co.uk/article/Visual+Event ) will be able to tell you f the event listener is still attached to the node or now. Allan
- 17th Feb 2010How to do "exact match" filtergot it, thank.
- 20th Jan 2010ServerSide Search or filter on selected columnDarn! I was tracing with firebug and i just saw that... i was jumping over here to say I figured it out and save you having to answer. :) Thanks again!!!
- 12th Nov 2009Get total record count after filterNever mind. Found the answer here: http://datatables.net/forums/comments.php?DiscussionID=501&page=1#Item_0
- 2nd Nov 2009on reload of aaData I am getting multiple dataTables_wrapper, length, filterHaha! So obvious - when you point it out! Thank you.
- 17th Oct 2009filter many columns on button clickis how I did filtering: [code] $("#ButtonFilter").click(function() { oTable.fnFilter( $("#input1").val(),
- 20th May 2009search filter text applied on a single columnThere are two ways to do this: Make your own text box on the page and don't allow DataTables to draw it's own (i.e. use sDom) Remove the event DataTables binds to the textbox it creates and then add your own event handler. Either way you will need to call fnFilter on each keyup event for a textbox (i.e. $('#whatever input').keyup( function () { oTable.fnFilter( this.value, 1 ); } ); You can see an example of who number 2 might be achieved with this plug-in which binds it's own event handler to the tables input box: http://datatables.net/plug-ins#api_fnSetFilteringDelay Allan