Skip to main content
May 28, 2008
Question

How to change state in spry when filter is selected

  • May 28, 2008
  • 2 replies
  • 341 views
Hello,

I'd like to find a way to change the region state when a filter is applied to it. I am using an XML data set that is large and when a filter is selected there is a noticeable delay. I would like the Loading state to appear when a filter is selected or at least hide the region till it is done. Anyone know how to do this? I have tried a number of methods and have not been successful.

Thanks!

David
This topic has been closed for replies.

2 replies

Inspiring
May 28, 2008
Oh, and Spry related questions may be better asked in the Spry forums:
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602



--
Danilo Celic
| Extending Knowledge Daily : http://CommunityMX.com/
| Adobe Community Expert
Inspiring
May 28, 2008
septemberbrain wrote:
> Hello,
>
> I'd like to find a way to change the region state when a filter is applied to
> it. I am using an XML data set that is large and when a filter is selected
> there is a noticeable delay. I would like the Loading state to appear when a
> filter is selected or at least hide the region till it is done. Anyone know
> how to do this? I have tried a number of methods and have not been successful.

The XML data set inherits certain notification events from the DataSet class. Take a look at the DataSet Observer sample page:
http://labs.adobe.com/technologies/spry/samples/data_region/DataSetObserver.html

One of the buttons performs a filter and uses the onDataChanged event to notify the observer. In your observer you could perform some action when the filter is applied.


--
Danilo Celic
| Extending Knowledge Daily : http://CommunityMX.com/
| Adobe Community Expert