What you need to do is set up "statechange" event handlers for each StringFilterControl; in each handler, you call the #getState method of the ControlWrapper associated with the handler. The state with contain a "value" parameter, which you can use to get whatever data you need from the DataTable to set the appropriate boundary of the NumberRangeFilter control. Change the min/maxValue options of the NumberRangeFilter and then call the NumberRangeFilter's #draw method.
On Tuesday, September 4, 2012 12:55:29 PM UTC-4, Bassa Safa wrote: > > I read in the documentation that binding Control to other Control in a > dashboard is possible > > https://code.google.com/apis/ajax/playground/?type=visualization#dependent_controls > > I want to bind two StringFilterControl to a NumberRangeFilterControl. One > StringFilterControl to the NumberRangeFilterControls min value and the > other to the max value. Is it possible? If so... how do I bind? > dashboard.bind(stringfilterMin, > numberrangefilter.lowValue).bind(stringfilterMax, > numberrangefilter.highValue); > But this surprisingly didnt work =) > > thank you in advance > bassa > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/qCCStHopdEQJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
