I don't think I'm seeing the same behavior as you. I only see the scrolling behavior if there is an item selected in the DataGrid, in which case it autoscrolls after clicking the data grid header so that the selected item is always visible.
Based on your "halo" namespace, you may want to try updating to a newer Flex 4 SDK. That namespace was changed to "mx" quite a while ago (Dec 09 -- http://blogs.adobe.com/pdehaan/2009/12/the_flex_4_halo_namespace_is_n.html) Peter From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Patil Yogesh Sent: Thursday, April 08, 2010 11:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem while sorting DataGrid column I saw an weird behavior while sorting datagrid column. 1. Launch an application with editable datagrid one tab of any browser. 2. Datagrid should have more values than its height so that vertical scroll bar appears... 3. Click on any one column header to sort that column.... It works perfectly fine.... 4. Open other tab from the same browser and then come back to the tab in which application is launched. 5. Again click on column header in order to sort the column. Actual Behavior: Vertical scroll changes its position each time we click on column header. Expected Behavior: Vertical scroll should not change its position as it behaved as mentioned after step 3. Here is the sample application: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768"> <s:Panel width="100%" height="25%"> <mx:DataGrid x="0" y="45" width="100%" height="100%" rowHeight="25" fontSize="12" fontWeight="normal" borderVisible="false" editable="true" wordWrap="true"> <mx:dataProvider> <fx:Object col1="World of Warcraft" col2="Blizzard" col3="Blizzard" col4="dasf" col5="sdgf"/> <fx:Object col1="Halo" col2="Bungie" col3="Microsoft" col4="dasf" col5="sdgf"/> <fx:Object col1="Gears of War" col2="Epic" col3="Microsoft" col4="dasf" col5="sdgf"/> <fx:Object col1="XYZ" col2="Epic" col3="Microsoft" col4="dasf" col5="sdgf"/> <fx:Object col1="ABC" col2="Epic" col3="Microsoft" col4="dasf" col5="sdgf"/> <fx:Object col1="123" col2="Epic" col3="Microsoft" col4="dasf" col5="sdgf"/> <fx:Object col1="4687" col2="Epic" col3="Microsoft" col4="dasf" col5="sdgf"/> </mx:dataProvider> <mx:columns> <mx:DataGridColumn dataField="col1"/> <mx:DataGridColumn dataField="col2"/> <mx:DataGridColumn dataField="col3"/> <mx:DataGridColumn dataField="col4"/> <mx:DataGridColumn dataField="col5"/> </mx:columns> </mx:DataGrid> </s:Panel> </s:Application> If I remove editable="true" property from datagrid then it works as expected. Does anybody else faced the same issue? Is there any workaround for this issue? Please let me know if anybody knows any workaround for this issue. ----- -- Regards, Yogesh Patil. -- View this message in context: http://old.nabble.com/Problem-while-sorting-DataGrid-column-tp28182757p28182757.html Sent from the FlexCoders mailing list archive at Nabble.com.