Jump to content


Is it posible to use the ColVis extra en Datatables?

datatables colvis

  • Please log in to reply
4 replies to this topic

#1 edgarvaldes

edgarvaldes

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 07 June 2013 - 04:05 PM

Iḿ talking about this:

http://www.datatable.../extras/colvis/

 

DataTables in GroceryCrud uses the TableTools "extra", but don't include ColVis by default.

 

The  initialisation example don't work at all:

 

"sDom": 'C<"clear">lfrtip'

 

Is this a problem wih the version of Datatables.js used in Grocery Crud?

 

 



#2 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 09 June 2013 - 06:09 AM

Hello edgarvaldes.

Thank you for this. I confirm that ColVis doesn't work with version 1.3.3 of Grocery CRUD.

I am looking into it and I will let you know.


Edited by davidoster, 09 June 2013 - 06:52 AM.
Fully Researced!

____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr


#3 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 09 June 2013 - 06:38 AM

Update: I confirm it works!

Steps,

 

1. download the ColVis extra from here, http://www.datatables.net/extras/

2. paste the extra under assets/grocery_crud/themes/datatables/extras

3. rename the folder to ColVis

4. under assets/grocery_crud/themes/datatables/js open the file datatables.js and replace 

   this line  : "sDom": 'T<"clear"><"H"lfr>t<"F"ip>',

   with this : "sDom": 'CT<"clear"><"H"lfr>t<"F"ip>',

5. under assets/grocery_crud/themes/datatables/views open the file list_template.php and add these two lines at the top

$this->set_css($this->default_theme_path.'/datatables/extras/ColVis/media/css/ColVis.css');

$this->set_js($this->default_theme_path.'/datatables/extras/ColVis/media/js/ColVis.min.js');

so it looks like this

yjouNei.png

 

6. Enjoy! http://eletter.gr/sa...yees_management


Edited by davidoster, 09 June 2013 - 06:48 AM.
make one header line!

____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr


#4 edgarvaldes

edgarvaldes

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 13 June 2013 - 04:29 PM

Hey, this is great! I can't test it right now but I really appreciate your work.

 

EDIT: Tested and working great!



#5 mosenturm

mosenturm

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 10 June 2016 - 01:33 PM

Hi,

 

I've tested ColVis 1.10 like above. But I can't see any button an my page. ColVis css and js are loaded. datatables.js is changed for ColVis. Any thoughts?

 

Thanks in advance for help!

Andreas







Also tagged with one or more of these keywords: datatables, colvis

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users