<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Flex - Preventing DataGrid scrolling when the dataprovider is updated.</title>
	<atom:link href="http://joelhooks.com/2008/02/07/flex-preventing-datagrid-scrolling-when-the-dataprovider-is-updated/feed/" rel="self" type="application/rss+xml" />
	<link>http://joelhooks.com/2008/02/07/flex-preventing-datagrid-scrolling-when-the-dataprovider-is-updated/</link>
	<description>"Test until fear turns to boredom"</description>
	<pubDate>Fri, 21 Nov 2008 19:01:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Joel</title>
		<link>http://joelhooks.com/2008/02/07/flex-preventing-datagrid-scrolling-when-the-dataprovider-is-updated/#comment-824</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Fri, 30 May 2008 14:28:40 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/2008/02/07/flex-preventing-datagrid-scrolling-when-the-dataprovider-is-updated/#comment-824</guid>
		<description>I've never seen it go to the bottom like that!

If you want it to go to the top, do this:

myDataGrid.selectedIndex = 0
myDataGrid.scrollToIndex(0)

That will reposition and select the first entry. To make it 'smart' you want to record the position of the item you are deleting, and have it select/scroll there.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve never seen it go to the bottom like that!</p>
<p>If you want it to go to the top, do this:</p>
<p>myDataGrid.selectedIndex = 0<br />
myDataGrid.scrollToIndex(0)</p>
<p>That will reposition and select the first entry. To make it &#8217;smart&#8217; you want to record the position of the item you are deleting, and have it select/scroll there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hari</title>
		<link>http://joelhooks.com/2008/02/07/flex-preventing-datagrid-scrolling-when-the-dataprovider-is-updated/#comment-818</link>
		<dc:creator>Hari</dc:creator>
		<pubDate>Fri, 30 May 2008 06:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/2008/02/07/flex-preventing-datagrid-scrolling-when-the-dataprovider-is-updated/#comment-818</guid>
		<description>Hi, my datagrid is bound to an ArrayCollection which is the dataprovider. When I remove items from Arraycollection, the focus on the datagrid moves to the bottom of the grid which deiplays a blank row. I want the focus to be remained always at the top. Please let me know any way to solve this.</description>
		<content:encoded><![CDATA[<p>Hi, my datagrid is bound to an ArrayCollection which is the dataprovider. When I remove items from Arraycollection, the focus on the datagrid moves to the bottom of the grid which deiplays a blank row. I want the focus to be remained always at the top. Please let me know any way to solve this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://joelhooks.com/2008/02/07/flex-preventing-datagrid-scrolling-when-the-dataprovider-is-updated/#comment-192</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Wed, 27 Feb 2008 17:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/2008/02/07/flex-preventing-datagrid-scrolling-when-the-dataprovider-is-updated/#comment-192</guid>
		<description>I found that it is easier to update the dataProvider with itemUpdated and make proper use of collections in Flex. This is still a solution if that isn't possible, for whatever reason, but I'd say it is far from a best practice.</description>
		<content:encoded><![CDATA[<p>I found that it is easier to update the dataProvider with itemUpdated and make proper use of collections in Flex. This is still a solution if that isn&#8217;t possible, for whatever reason, but I&#8217;d say it is far from a best practice.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 6.535 seconds -->
