When working with datagroup, I noticed that its children are not
immediately updated when the dataprovider is updated. Calling your
scrolling code in a callLater function will have the updated number of
children to scroll, if the validateNow doesn't work for your situation.
Another option is if you have virtualLayouts set to false, you can catch
the rendereradd event of the datagroup and run your scroll code there.

@Alex, thanks for the idea of validateNow. I was working on animating the
adding and removal of items in a datagroup and that may be what I was
missing.

On Thursday, March 12, 2015, Alex Harui [via Apache Flex Users] <
[email protected]> wrote:

> Sorry, my eyes kept seeing DataGroup as DataGrid.
>
> But effectively, all the code you need is probably in DataGrid so you
> might want to at least start with code from DataGrid in trying to solve
> these problems, or just switch to DataGrid.
>
> You might need to play with the focus-related properties in order to get
> the DDL to work.
>
> Regarding scrolling to the end, you might just need a validateNow() call
> in case the new “end” hasn’t been fully computed yet.
>
> On 3/12/15, 11:15 AM, "olegkon" <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=9794&i=0>> wrote:
>
> >Alex,
> >
> >>Did you try: ensureCellIsVisible()?
> >Hmm, I thought it is a method in DataGrid...  which Cell ?
> >No DataGrids in my code there, but a DataGroup.
> >
> >ComboBoxGridItemEditor ?   Again, there is no Grid or DataGrid in my
> code,
> >it is more about   DropDownList (or maybe ComboBox if I can disable
> >editing
> >text there),
> >DataGroup and Scroller.
> >Are you responding to a different post?
> >
> >
> >The problem I am having with the Scroller is that even if I use
> >scroller.viewport.verticalScrollPosition +=
> >scroller.viewport.getVerticalScrollPositionDelta(NavigationUnit.END);
> > or scroller.viewport.verticalScrollPosition +=
> >dataGroup.getElementAt(0).height * ac.length;
> >it only moves scroller to the row before the last, not the last one.
> >I tried to add something extra like dataGroup.getElementAt(0).height or 2
> >or
> >3 of those, but still the same result.   Is there a better solution to
> it?
> >
> >
> >
> >
> >
> >
> >--
> >View this message in context:
> >
> http://apache-flex-users.2333346.n4.nabble.com/DropDownList-in-DataGroup-t
> >p9785p9793.html
> >Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-flex-users.2333346.n4.nabble.com/DropDownList-in-DataGroup-tp9785p9794.html
>  To start a new topic under Apache Flex Users, email
> [email protected]
> <javascript:_e(%7B%7D,'cvml','ml-node%[email protected]');>
> To unsubscribe from Apache Flex Users, click here
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=a2V2aW4uZ29kZWxsQGdtYWlsLmNvbXwxfDI1MDE5NDgwNQ==>
> .
> NAML
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




-----
.
--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/DropDownList-in-DataGroup-tp9785p9795.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to