Thanks Jester, worked great!!!!
 
Jim


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Monday, December 12, 2005 3:10 PM
To: [email protected]
Subject: Re: [flexcoders] Redraw a datagrid

To update DataProviders, you need to use the DataProvider API, else the controls that they are bound to will not visually update.
 
So, do:
 
var item = my_grid.getItemAt(i);
item.qty += Qty;
my_grid.replaceItemAt(i, item);
 
OR:
 
var item = my_grid.getItemAt(i);
my_grid.editField(i, "qty", item.qty + Qty);
 
----- Original Message -----
From: James
Sent: Monday, December 12, 2005 12:55 PM
Subject: [flexcoders] Redraw a datagrid

Good morning people of the list:
 
I know I've seen this before but I'm having problems. Basically I have a datagrid that has a dataprovider of an array, when I add a new record, no problem, when I update an array item through a script exam: item[i].qty+=Qty, it updates the array but does not update the screen, I've set up an event(not sure if it's working) however as long as the client at least does a mouseover the cell, it changes, else it does not.
 
Help!!!
 
Jim


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to