You want to clear the currently selected items from one CategoryFilter when 
the other CategoryFilter "statechange" event fires?  Call the #setState 
method of the filter you want to clear:

function updateValues(e) {
    filter2.setState(); 
}

On Monday, November 4, 2013 11:15:29 AM UTC-5, letyqueta wrote:
>
> Hi!
>
> I have two dependent filters and I want to remove all selected from one 
> after filtering.
> I've something like this:
>
> var filter = new google.visualization.ControlWrapper({
>     'controlType': 'CategoryFilter',
>     'containerId': 'filterDiv',
>     'options': {
>       'filterColumnIndex': 2,
>       'ui': {
>       'labelStacking': 'vertical',
>         'allowTyping': false,
>         'allowMultiple': true, 
>       }
>     }
>   });
>
> var filter2 = new google.visualization.ControlWrapper({
>     'controlType': 'CategoryFilter',
>     'containerId': 'filterDiv2',
>     'options': {
>       'filterColumnIndex': 1,
>       'ui': {
>       'labelStacking': 'vertical',
>         'allowTyping': false,
>         'allowMultiple': true
>       }
>     }
>   });
>
> .....
>
> dashboard.bind(filter , filter2 );
>
> ....
>
> google.visualization.events.addListener(filter, 'statechange', 
> updateValues);
>
> ........
>
> function updateValues(e) {
> *filter2.setOption('selectedValues',null); *
> }
>
> ....
>
> It doesn't work and I haven't found a correct solution to my problem.
>
> Thank you!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to