Title: Rows
Last modified: August 21, 2016

---

# Rows

 *  Resolved [traductor](https://wordpress.org/support/users/traductor/)
 * (@traductor)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/rows/)
 * Hi , congratulations for TablePress , it’s great !
    I am designing my boards 
   and I’m stuck for days , I send the details to see if you can help : The table
   still does not contain any data or is finished , this is the link: [](http://clientes.hol.es/entra/buscar/sopas-y-cremas/)
 * What I’m trying is:
    1 – search by ingredients within a category , thanks to 
   TablePress I’ve done quickly ! 2 – In the rows found , the intention is that 
   the user selects to print or save or copy or … I installed TableTools but I can
   not activate the row select or multiselect rows to send to pdf or xls or csv 
   or print …. It is easy to send TableTools , but select to send …. how I can do?
   where I put or modify the code? When modify the line 60 in TableTools file disappears
   search filter . It does not work if I enter the code in the table.
 * This is what says the file on line 60 :
 * >  $ tabletools_options = ‘ { ” sSwfPath “: ” ‘ . $ swf_path . ‘ ” , ” aButtons”:[{”
   > sExtends ” , ” copy” , ” sButtonText “: ” “} , {” sExtends ” : “csv ” , ” sButtonText“:”“},{”
   > sExtends “:” xls ” , ” sButtonText “:” “} , {” sExtends ” : ” pdf ” , ” sButtonText“:”“},{”
   > sExtends ” : ” print “, ” sButtonText “: ” “} ] } ‘ ;
 * And this is the DataTables code :
 * >  $ (document). ready (function ( ) {
   >      $ (‘ # example ‘ ) . dataTable ( {”
   > MODS ” : ‘T < ” clear”> lfrtip ‘         ” oTableTools “: {             ” sRowSelect”,”
   > multi” ,             ” aButtons “: [                 {                     ”
   > sExtends ” : “csv ” ,                     ” bSelectedOnly “: true          }]}});});
 * What is the correct way to select rows inserted without losing TablePress properties
   or TableTools ?
    I have read in the forum, but nothing .
 * can you help me please ?
    Oops , sorry for my english!
 * Thanks !
 * [http://wordpress.org/plugins/tablepress/](http://wordpress.org/plugins/tablepress/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [traductor](https://wordpress.org/support/users/traductor/)
 * (@traductor)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/rows/#post-4244857)
 * Sorry, here is the link:
 * [http://clientes.hol.es/entra/buscar/postres/](http://clientes.hol.es/entra/buscar/postres/)
 * is in spanish
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/rows/#post-4244909)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * I’m not an expert with the TableTools options, but this should achieve what you
   want:
    In the file “”, please replace the line 60
 *     ```
       $tabletools_options = '{ "sSwfPath": "' . $swf_path . '", "aButtons": [ { "sExtends": "copy", "sButtonText": "" }, { "sExtends": "csv", "sButtonText": "" }, { "sExtends": "xls", "sButtonText": "" }, { "sExtends": "pdf", "sButtonText": "" }, { "sExtends": "print", "sButtonText": "" } ] }';
       ```
   
 * with
 *     ```
       $tabletools_options = '{ "sSwfPath": "' . $swf_path . '", "sRowSelect": "multi", "aButtons": [ { "sExtends": "copy", "sButtonText": "", "bSelectedOnly": true }, { "sExtends": "csv", "sButtonText": "", "bSelectedOnly": true }, { "sExtends": "xls", "sButtonText": "", "bSelectedOnly": true }, { "sExtends": "pdf", "sButtonText": "", "bSelectedOnly": true }, { "sExtends": "print", "sButtonText": "", "bSelectedOnly": true } ] }';
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [traductor](https://wordpress.org/support/users/traductor/)
 * (@traductor)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/rows/#post-4244941)
 * wow! It’s perfect! Thanks so much! All buttons show only selected rows (good!)
   except print ¿?
 * One more question, how can I change colour for selected rows? I try in css options,
   with:
 * > .tablepress .row-selected {
   >  background-color: #00ffff; }
 * but it doesn’t work
 * Regards,
    Joanna
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/rows/#post-4244962)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
    Unfortunately,
   I have no clue why the printing does not take the selected rows into account 
   🙁 Sorry. That might be a question for the DataTables forums.
 * About the color of the selected rows: If “row-selected” is the CSS class that
   those get, then you might want to try adding the `!important` keyword:
 *     ```
       .tablepress .row-selected {
         background-color: #00ffff !important;
       }
       ```
   
 * Otherwise, you’ll need to find out which HTML element gets a CSS class, when 
   a row is selected.
 * Regards,
    Tobias
 *  Thread Starter [traductor](https://wordpress.org/support/users/traductor/)
 * (@traductor)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/rows/#post-4244969)
 * Hi
    I am crazy. The class in TableTools is select DTTT_selected (I think), but
   in Tablepress… how? (be pacient, please, I am inexpert)
 * .tablepress .DTT_selected :no work
    .tabletools .DTT_selected :no work
 * ….
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/rows/#post-4244971)
 * Hi,
 * three TTT 🙂
 *     ```
       .tablepress .DTTT_selected {
        ...
       }
       ```
   
 * should then work. If not, can you please post a link to the page with the table,
   so that I can take a direct look? Thanks!
 * Regards,
    Tobias
 *  Thread Starter [traductor](https://wordpress.org/support/users/traductor/)
 * (@traductor)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/rows/#post-4244990)
 * Hi Tobias
    Better if you see, here you are the link: [http://clientes.hol.es/entra/buscar/postres/](http://clientes.hol.es/entra/buscar/postres/)
 * Thanks, Tobias
 * Regards,
    Joanna
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/rows/#post-4244991)
 * Hi Joanna,
 * thanks for the link! Basically, we’ll just have to tell the CSS to color the 
   cells and not the rows. Please try this:
 *     ```
       .tablepress .DTTT_selected td {
         background-color: #b0bed9;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [traductor](https://wordpress.org/support/users/traductor/)
 * (@traductor)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/rows/#post-4244993)
 * 😀
    perfect!!! Thanks so much! TablePress is perfect!! and you!
 * I rate or course
    😀
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/rows/#post-4244994)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Rows’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [Multi-Select](https://wordpress.org/support/topic-tag/multi-select/)
 * [row](https://wordpress.org/support/topic-tag/row/)

 * 10 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/rows/#post-4244994)
 * Status: resolved