Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6253235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:57:04+00:00 2026-05-24T13:57:04+00:00

My Flex datagrid automatically scrolls to the top when I update the dataProvider (ArrayCollection).

  • 0

My Flex datagrid automatically scrolls to the top when I update the dataProvider (ArrayCollection). I do not want this to happen, but I still want all of the objects to update. I am developing a semi-real time dashboard for a customer’s management system, that will update often. If it scrolls to the top every time it updates, it will be very difficult and frustrating to use.

I’ve attempted to use the following techniques to prevent this, none have worked.

dataProvider = updatedDataProvider;
dataProvider.updateItem(dataProvider);

dataProvider.source = updatedDataProvider.source;
dataProvider.updateItem(dataProvider);

I’ve attempted to dispatch a mouse event to hold the vertical scrollbar in place, I’ve attempted to lock the vertical scrollbar position value in place (saving and reassigning)…

And many others, those are just the first few that popped into my head. Anyone have any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T13:57:05+00:00Added an answer on May 24, 2026 at 1:57 pm

    Already been answered in How do I maintain selection in a DataGrid when the data changes? , check it.

    Building on top of that answer, if the index changes between data providers, ie, if a row is inserted above, you may want to do a getItemIndex on the new provider.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use this arrayCollection to populate a Flex 3 Datagrid. I'd also like to
I want to select information in a single cell from my DataGrid in Flex
I have a small flex datagrid. The dataProvider is an xmlList. I have two
How do you bind the dataprovider of a DataGrid in Flex to an Array?
I need to convert a datagrid table in Adobe Flex to an ArrayCollection. I
I'd like to extend the standard DataGrid component in flex with mxml. But I
How to make a computed column in Flex datagrid? example: <mx:DataGrid dataProvider={ConsoleDetails} id=datagrid> <mx:columns>
In a flex datagrid, by default clicking on column headers does sorting. I want
Is there a way to check if flex datagrid column is empty or not?
We have a Flex DataGrid with 3 columns of which one of them has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.