Actionscript 3 :: Datagrid Is Scrolling Up On Data Refresh?

Aug 8, 2011

Here is what is happening:

1. I have a datagrid (which I am generating dynamically)

2. If I select a row and edit it (on clicking it opens a pop up and when i save data in that, I just update the data provider of the grid locally).

3. As soon as data provider of datagrid is updated, the datagrid scrolls up in a way so that selected row comes at the top of datagrid.

View 1 Replies


Similar Posts:


Flex - Refresh Datagrid With Hierarchical Data?

Dec 3, 2009

how can I refresh the displayed data in a Datagrid when the underlying ArrayCollection changes?

<nmoschitz:dataProvider>
<mx:HierarchicalData source="{arrCol_groupedData}"
childrenField="accounts"/>
</nmoschitz:dataProvider>

Calling a simple refresh (like with a simple arraycollection as a dataprovider, or with a refresh on the Grouping Collection) does not work. Also re-assigning the arrayCollection to the Hierarchical Data and then assigning this one again to the Datagrid does not work (even with calling invalidateProperties() or validateNow()).

View 2 Replies

Flex :: Refresh The Datagrid To Reflect The Updated Data?

Apr 5, 2012

I am trying to refresh the datagrid to reflect the updated data after the user updates the database. I have the following code:

script
protected function updataHandler(event:MouseEvent):void
{
updateJobsResult.token = Service.updateJobs(updateJobData);

[Code].....

View 2 Replies

Flex :: Data Bind DataGrid Component Without Scrolling Up?

Nov 28, 2009

I have a DataGrid component that I would like to update every 5 seconds. As rows are being added to this DataGrid I noticed that every update causes it to reset the scroll bar position to the top. How can I manage to keep the scroll bar at its previous position?

View 4 Replies

Flex :: Refresh / Reload A Datagrid?

Jul 10, 2009

I am using a datagrid. It has itemEditor components, combo boxes, etc. as aprt of columns.datagrid.invalidateList() method works to reload the datagrid with new dataProvider data.But, for me it is appending to the old data and new data gets added below the older data. I am not able to fix this reload of datagrid.

View 3 Replies

Flex :: Keep Selection After Refresh In Datagrid?

Jun 6, 2011

My datagrid is filled with data from an Oracle database. The datagrid refreshes after 1 min. After that, I lose the selected item. I want to avoid that. Consider that it's quite possible that there is new data after refresh, so the selected index may no longer appear in the datagrid after a refresh.

View 1 Replies

Flex :: Datagrid Refresh When Dataprovider Is Updated?

Feb 22, 2010

i am working on an aplication using flex,adobe air...i have a datagrid with a XML as my dataprovider...during the execution of program my XML is updated....after XMl is updated and saved my datagrid should also get update..I have used Dataprovidername.refresh() method but it is not working.

View 4 Replies

Flex :: Keep A List From Scrolling On DataProvider Refresh/update/change?

Jun 30, 2011

I have a simple list and a background refresh protocol.When the list is scrolled down, the refresh scrolls it back to the top. I want to stop this.I have tried catching the COLLECTION_CHANGE event and validateNow(); // try to get the component to reset to the new datalist.ensureIndexIsVisible(previousIndex); // actually, I search for the previous data id in the IList, but that's not importantThis fails because the list resets itself after the change).I hate to use a Timer, ENTER_FRAME, or callLater(), but I cannot seem to figure out a way.The only other alternatives I can see is sub-classing the List so it can catch the dataProviderChanged event the DataGroup in the skin is throwing.

View 4 Replies

ActionScript 2.0 :: Refresh Variables With New Data?

Sep 19, 2010

I am tying to find a way to refresh variables with new data. I am using PHP and MySQL to randomly assign new data to a variable when the script is called. This new data is passed to Flash as in a variable using these functions:

varReceiver = new LoadVars();
varReceiver.load("iat_config.php");
varReceiver.onLoad = function(success){

[code]....

So my problem is that every time I call my movie to go to this frame that contains this actionscript, it does not provide me with new variables. Another important variable I need to change every time the frame occurs is startTime = getTimer(); However, the variable startTime will stay they same and not change when the frame is recalled.

View 1 Replies

ActionScript 3.0 :: Force Flash To Refresh Its Xml Data?

Oct 24, 2008

How do you force Flash to refresh its xml data?

I have a Flash app that uploads an xml file using URLLoader() and URLRequest(). But this file gets overwritten every 10-30 minutes with fresh data. The only way I've found so far to view changes in the xml data is to refresh my web page (F5 or Ctrl-->F5). Short of turning to Javascript, isn't there some way for Flash to refresh its xml data?

View 3 Replies

ActionScript 2.0 :: Can't Get Flash To Refresh Server Data

Jan 27, 2006

Here's the simple steps

1. Enter part number and submit

2. Part number is sent to server

3. Part number is returned from server with a string of results (manfacturer, product location, number of stock, size, image)

4. Flash takes the results and places them in to their apprpriate display text fields and loads the image also.

All this works great EXCEPT when you try a second, third, fourth...time.

I trace all the responses and get new and correct results for every part number I enter, but it simply won't overwrite the previous displayed data. Nothing I try will get rid of the last results!

View 1 Replies

ActionScript 2.0 :: Auto-refresh Xml Data In Flash?

Mar 11, 2007

Code:
function LoadXML(loaded) {
if (loaded) {
_root.kul_ad.text = this.firstChild.firstChild.childNodes[0].nodeValue;
_root.kul_kalyon = this.firstChild.childNodes[1].firstChild.nodeValue;

[code]....

I have swf get values from a xml.I want:when I send a change to xml, flash will detect that automatically

Code:
myLoadInteval = setInterval(LoadFile, 2000);
function LoadFile() {
xmlData.load("xml.php");
}

didn't work

View 3 Replies

ActionScript 3.0 :: Changing Datagrid Scrolling Down Speed?

Jul 25, 2011

Just something curious, can I change the datagrid scrolling speed?

View 6 Replies

Flex: Error On Scrolling Vertically In A DataGrid

Jun 10, 2010

i have this code

<mx:DataGrid id="tempListDG" itemDoubleClick="doubleClickHandler(event)" width="100%" height="100%" rowHeight="110"
draggableColumns="false" sortableColumns="false" allowMultipleSelection="false">
<mx:columns>
<mx:DataGridColumn id="chkSel" headerText=" " width="15" sortable="false">
<mx:itemRenderer>

[Code]...

View 2 Replies

Flex :: Value In Datagrid Itemrenderers Set Data Method Doesn't Return The Correct Data?

Jan 10, 2012

I've got a Gridcolumn in a Datagrid (Spark). The Column's dataprovider is a Number value that gets updated via Binding.Now, without an item renderer the cell displays the correct values.If I set an item renderer, I can't access the values in this renderer.My renderer looks like this, so nothing really do here (for now) but to trace the value, but the value is always NaN.

<?xml version="1.0" encoding="utf-8"?>
<s:GridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" width="100%" height="100%" >[code].......

without the renderer, the column displays the correct values, so apparently the DefaultGridItemRenderer works fine.As requested, here is my Datagrid;

<s:DataGrid id="dataGrid" dataProvider="{_listItems}">
<s:columns>
<s:ArrayList>[code]..........

_listItems is an ArrayList with instances of a model class, which has (amongst others) a property called change of type Number.

View 1 Replies

Flex :: Data Passed From DataGridColumn.itemToLabel To DataGrid.itemRenderer.set(data)?

Dec 4, 2009

I have a DataGrid whose dataProvider is an Array of int Arrays (each with different lengths). Since each row has variable size (and I want to display all the data), I decided to extend DataGridColumn and overwrite the itemToLabel function to be able to display the data. The problem is that I also need to display the data differently depending on the int value.

I believe the only solution is to write an itemRenderer, but the only input the itemRenderer.set(data) function receives is the entire int Array. I believe I need either the exact string returned by itemToLabel or the column index of the cell the itemRenderer is for (to basically do the same parsing I implemented in itemToLabel).

View 1 Replies

Professional :: Two Widgets Be Connected So That One Can Force The Other's Data To Refresh

May 31, 2011

I'm very new to Flash, but I have an app that uses mult widgets. What I need to know is if one of my widgets data changes can I force another widget on the screen to force it to refresh its data.

View 1 Replies

Forcing Menu To Refresh After Modifying Data Provider XML

Apr 15, 2009

When updating the data provider for a menu bar component, the state of the menu items fails to update until the user interacts with the menus (rolls the mouse over them, clicks them, etc). For example, a disabled item remains enabled until the user roll the mouse over it. Is there a way to force a menu 'refresh' after modifying the data provider XML?

View 1 Replies

Flex :: Value Edited In TextInput Gets Collapsed While Scrolling Which Is Used As ItemRenderer In DataGrid

Mar 25, 2011

I have two datagrids 1. OPTION GRID and 2. ELECTION GRID. I have used VBox container as itemRenderer in ELECTION GRID which consists of TextInput in Description Column. The following is the sample SWF.

Whenever the checkbox is selected in the OPTION GRID i have to add a corresponding text input with description value in the 2nd grid (ELECTION GRID) for all the rows. Suppose if two checkboxes are selected, i have to add two textinput in the 2nd grid and so on... This is working fine. But whenever if i edit the textinput and scrolled up or down, the value gets collapsed between the rows or get vanished. I suspect that the itemRenderers will be re-used for the other rows while scrolling. How to retain the edited value in textinput ?

The following is the code.

Main code :

<mx:VBox width="100%" height="100%">
<mx:Label text="OPTION GRID :" fontSize="12" fontStyle="normal" fontThickness="15"/>
<components:CAEventDetailDataGrid width="100%" height="20%" dataProvider="

[Code].....

The Election Event is a customised event which will be triggered and invoke the listener function addTextInput whenever the checkbox is selected/de-selected in OPTION GRID.

private function addTextInput(electionEvent : ElectionEvent) : void

Is their a way to retain the edited value in TextInput ?

View 1 Replies

Flex :: Spark Datagrid Fixed Column, Horizontal Scrolling?

Jul 11, 2011

How can I make my datagrid have its first column fixed and scroll the reset horizontally and vertically?

View 1 Replies

Professional :: Refresh Button Does Not Refresh Flash Website

Sep 30, 2010

I had an issue with my index.html testing on IE and the preloader just stalls on "loading 0%". he told me that locally the progress event doesn't have time to load and to try uploading it to your server and see if it works. It worked just fine. Rah Rah Kglad.
 
So today I'm fine tuning the swf/ fla to clean it up. Reduced some picture sizes and deleted unused files and reduced the swf from 4000 KB to 350 KB Rah Rah Gene. replaced the swf in Dreamweaver and re-uploaded with Filezilla. Rah ah Filezilla.
 
Everything working great and my preload went from 23 seconds to less than 3. So I'm real happy except for one small issue. Firefox and IE both do this. If I hit the refresh button, it stalls on "loading 0%" once again just like it did locally.
 
If I hit the refresh several times it WILL refresh randomly....2 times refresh......10 times refresh etc.
 
[URL]
 
Spoke to my hosting company who said everything seems fine on the server. BTW he said Chrome did NOT have this issue Rah Rah Chrome.

View 1 Replies

ActionScript 3.0 :: Put Data In Datagrid With AIR?

May 25, 2011

I'm doing an AIR app scheduler to load data from a .txt. I'm able to trace the data in flash but how do I put those data into flash components (maybe datagrid? Maybe something that can let the user delete part of the entry of their schedule in the scheduler. For example if they wish to delete entry 5 of the scheduler, what should the code for the app be? After displaying the code in the app via flash, the user will be able to delete the fifth entry in the scheduler, or something similiar to this idea. How can I achieve that?

[Code]....

View 3 Replies

ActionScript 2.0 :: Take Data Out Of A Datagrid?

Jul 19, 2008

I was wondering, how can I take data out of a datagrid?

I know how to put data into it, and to get it displayed, but basically, I want to take selected data out of it, so I can send it through a URL so that I can get my code to mess around with it.

View 4 Replies

ActionScript 3.0 :: Transfer Data From A DataGrid To Another?

Mar 29, 2010

Can I move/copy values from a DataGrid to another without using the DataProvider of the first DataGrid?

View 2 Replies

Data Integration :: Cannot Read XML Into A DataGrid

May 17, 2007

I can not read my XML into a DataGrid. I have looked at the TimeSheet tutorial and have been able to get it to work, but can not make the adjustments to this file. I was wondering if there was a problem with XML itself?

View 1 Replies

ActionScript 1/2 :: Loading Data To DataGrid?

Jul 6, 2009

Create a simple Datagrid using XML  Take Datagrid instance name "myData"
 
AS CODE
 
//script starts here var myxml:XML = new XML();myxml.load("items.xml");myxml.ignoreWhite = true; myxml.onLoad = function(){ var prod:Array = myxml.firstChild.childNodes; for(i=0;i<prod.length; i++){ nam=prod[i].firstChild.childNodes[0];

[Code].....

View 1 Replies

DataGrid Data And Behaviour Modification?

Sep 10, 2009

stop();
import fl.events.DataGridEvent;
function endEditHandler(evtObj){ trace(DataGrid_Main.getItemAt(evtObj.rowIndex)

[code].....

View 7 Replies

ActionScript 3.0 :: Datagrid Data Into A Textfield

Jun 2, 2010

i am just trying to get the datagrid selected item data into a textField tf. but i get object object, not the data.[code]

View 2 Replies

ActionScript 3.0 :: DataGrid With Data Paging?

Aug 16, 2011

This essentially means that as the user scrolls the DataGrid only the data needed  is requested and displayed (essential for m app as users could have 1000's of records). I was wondering if anyone has any examples of doing this with a Flash DataGrid rather than Flex as my project is pure AS

View 2 Replies

ActionScript 3.0 :: Export Data From Datagrid?

Nov 21, 2011

Just like in title i know how to load(import) data from xml to datagrid, but don't know how to save(export) it into another xml, i know i will have to use php file to save it, but how to export.

View 14 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved