Linked Select Column Filtering

Linked Select Column Filtering

zohaibsiddiquizohaibsiddiqui Posts: 1Questions: 1Answers: 0
edited April 2015 in Free community support

Hi Allan,

I am using below code for select and text input filtering

$(document).ready(function(){
$('#example').dataTable()
.columnFilter({ sPlaceHolder: "head:before",

                aoColumns: [    { type: "select" },
                            { type: "select" },
                            { type: "text" },
                            { type: "text" },
                            { type: "text" },
                            { type: "text" },
                            null,
                            null,
                            null
                    ]

    });

});

Now my question is that whether I can update values of second column select filter based on filtering of first column filter. Like I have three categories. 1. Country 2. City 3. Area .
Now what happens is when I filter any country and then go on to select city of that country. the second select filter will show cities of all countries and not that of particular country

If this can be done then do tell me.

This discussion has been closed.