flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurice Amsellem <maurice.amsel...@systar.com>
Subject RE: Search in ADG
Date Wed, 04 Dec 2013 07:48:28 GMT
Also, set ADG.scrollHorizontalPolicy to "on",   then simply calling ADG. horizontalScrollPosition
= <column Index> will do the trick.

-----Message d'origine-----
De : Maurice Amsellem 
Envoyé : mercredi 4 décembre 2013 08:36
À : 'dev@flex.apache.org'; flex-dev@incubator.apache.org; flex-users-subscribe@incubator.apache.org
Objet : RE: Search in ADG

MX components manage scrolling internally,  Spark Scroller is used for spark skins only.
So yes, you should remove it 

-----Message d'origine-----
De : Oleg Konovalov [mailto:olegkon@gmail.com] Envoyé : mercredi 4 décembre 2013 03:40
À : flex-dev@incubator.apache.org; flex-users-subscribe@incubator.apache.org
Objet : Search in ADG


I have a Flex App where on several tabs (TabNavigator) I have MX AdvanceDataGrid's (wrapped
in Spark Scroller's), which are dynamically populated (so I don't know in advance about 1/2
of Columns).
Since the number of columns can be 200+, I am trying to implement a Search within Column Headers
and data, one by one kind, so that when match is found, it highlights that cell or at least
highlights that row and displays that column, brings it in user view.
So far it shows that row, but I never was able to scroll to that column, so user can see it.
I tried to use ADG's horizontalScrollPosition, verticalScrollPosition, validateNow with scrollToIndex,...
When I try to set selectionMode="singleCell", that sometimes seem to freeze the app.

Any advice or code snippet how to scroll to that matching Column?
How to highlight the header and/or cell ?

Can the problem be in that Scroller?

Any help is very appreciated.

Thank you in advance,
View raw message