Columnfilter dynamic filtering

Columnfilter dynamic filtering

DeeptrickDeeptrick Posts: 2Questions: 0Answers: 0
edited December 2012 in Plug-ins
Helo! I have a table with columnfilter select and what I want to do is: If I select a value and the table get filtered, and I want to add a second filtering option, the second filtering option only display the values that the table currently has.

For example:
I have a table with country and city column. If I select country/USA, the city column only shows the cities that USA has, not all the cities.

Thanks!

Replies

  • gizzy2k7gizzy2k7 Posts: 4Questions: 0Answers: 0
    I need to know that too. I fill the select box dynamically by php and the function contains already a POST check whether another selectbox already got a value. I just need to know how I make datatables update the aocolumns.
    [code]aoColumns: [ [...]
    { sSelector: "#filtergebz",type: "select", values: ['.$this->getgebz($usermnr).'] },
    [...] [/code]

    How do I apply that again by an onclick event or something?
  • ulrikeulrike Posts: 39Questions: 1Answers: 0
    You should probably try this: http://datatables.net/extras/thirdparty/ColumnFilterWidgets/DataTables/extras/ColumnFilterWidgets/
  • ulrikeulrike Posts: 39Questions: 1Answers: 0
    Try this: http://datatables.net/extras/thirdparty/ColumnFilterWidgets/DataTables/extras/ColumnFilterWidgets/
This discussion has been closed.