Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to change state in spry when filter is selected

Guest
May 28, 2008 May 28, 2008
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
TOPICS
Server side applications
342
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 28, 2008 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 28, 2008 May 28, 2008
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines