• Guest

    Is this any different then doing this in the CSS?

    tr:hover {background: #ECFFB3 !important; }

  • http://www.craiglotter.co.za Craig Lotter

    Not really, except it will work in IE, unlike the CSS tr:hover trick which only works in standards compliant browsers…

  • Anon

    How are you triggering the redraw of the table?

  • Daniel

    was useful to me…

    tx!

  • http://profiles.google.com/henkemike Mike Henke

    So is it possible to highlight matching cells for the search/filter?  Let’s say I have First/Last name columns with rows: Will/Smith, Smith/Jones,John/Doe, Smith/Smith.  When I search “Smith” I would like to easily see what/what these rows matched.

    • http://www.craiglotter.co.za Craig Lotter

      Doesn’t a search/filter on a datatable only return the matching results? Or
      do you mean the specific cell should be highlighted to indicate what
      matched? I’m not sure, but if the matched cell is attached a unique class or
      id which we can match on, then I don’t see why it wouldn’t be possible.
      However, off the top my head, I’m pretty sure datatables doesn’t mark the
      matching column – just returns the matching rows based on passing a regex or
      sql query test.

  • GreenThumb

    Kickass Craig! Thanks for the advice on using the callback function, works perfect!

  • Sam

    thanks man! finally I get there, thanks for this post yours! thank god you post this! this is make me crazy all today…

  • Chuster Boy

    Hey Bro,Thnxs a lot…

    • http://www.craiglotter.co.za/ Craig Lotter

      No problem!

Related Posts:

  • Using jQuery to highlight a table row on mouse over is pretty simple to achieve, and today I'll quickly demonstrate how you can achieve this neat effect using the addClass and removeClass jQuery functionalities. First, you need to define your CSS style to be applied to the row you are hovering over, picking out so ...

  • I’ve mentioned the wonderful jQuery plugin DataTables a number of times before, the awesome little trick that instantly transforms any HTML table fed to it into a fully sortable, paginated, searchable and zebra-striped table, requiring the most minimum of coding to implement. Today's tip looks at how you can spe ...

  • I really do love the awesome DataTable plugin which creates useful dynamic, with oodles of extra functionality, tables out of plain old vanilla HTML tables. Today's quick tip however looks at how one destroys an already instantiated DataTable instance, say because you want to recreate it at a later stage in a compl ...

  • I've mentioned the wonderful jQuery plugin Datatables a number of times before, the awesome little trick that instantly transforms any HTML table fed to it into a fully sortable, paginated, searchable and zebra-striped table, requiring the most minimum of coding to implement. Today's quick tip is on how to disable ...

  • DataTables is a fantastic plug-in for the jQuery Javascript library that I use for pretty much all my web development projects. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table – in other words, it creates useful dyna ...

 
       

Craig Lotter is an established web developer and application programmer, with strong creative urges (which keep bursting out at the most inopportune moments) and a seemingly insatiable need to love all things animated. Living in the beautiful coastal town of Gordon's Bay in South Africa, he games, develops, takes in animated fare, trains under whichever martial arts dojo is closest at the time, and for the most part, simply enjoys life with his amazing wife and daughter.

Oh, and he draws ever now and then too.

This is a collection of things that he has managed to find the time to scribble down since 2007.

Looking for Something?

Jump to Category:

 
©2007-2013 Craig Lotter