"...By placing the selectedIndex in a int..." that is the simplest way.

 

If, instead of re-assigning the entire dataProvider, you can figure out a way 
to only update the changed data, using the dataProvider API, the UI will 
update, and not redraw entirely.  I usually just keep the selectedIndex in a 
var, and re-set it.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Nicolas 
Boulet-Lavoie
Sent: Wednesday, April 30, 2008 3:39 PM
To: [email protected]
Subject: [flexcoders] Datagrid update question

 

Hello guys,

 

I have a method who parses a XML feed and updates a datagrid each seconds (it's 
for a real-time customer support). I have a question about this mechanism. Is 
that possible to keep the current selectedIndex of the datagrid? Because, as 
soon as the grid is udpated by the next update call, the selected item is lost.

 

Any idea how I could do this please? By placing the selectedIndex in a int? Or, 
a better idea?

 

-- 

Merci et bonne journée,

 

Nicolas Boulet-Lavoie, Webmestre/Webmaster

--------------------------------

L A P R I S E ®

Tél: 248-8886 poste 288

[EMAIL PROTECTED]

 

http://www.maisonlaprise.com/

http://www.habitaflex.com/

http://www.lorendo.com/

http://www.tomindustries.com/

--------------------------------

 

AVERTISSEMENT CONCERNANT LA CONFIDENTIALITÉ. Ce message est strictement réservé 
à l'usage de l'individu ou de l'entité à qui il est adressé et contient de 
l'information privilégiée et confidentielle. Si le lecteur de ce message n'est 
pas le destinataire projeté, celui-ci est par la présente avisé que tout 
dissémination, distribution ou copie de cette communication est strictement 
prohibée. Si le destinataire ne peut être joint ou vous est inconnu, veuillez 
informer l'expéditeur par courrier électronique immédiatement et détruire ce 
message et toute copie de celui-ci.

 

CONFIDENTIALITY WARNING This message is intended solely for the individual or 
entity to whom it is addressed. It contains privileged and confidential 
information which is not to be disclosed without the sender's express consent. 
If you are not the intended recipient of this message or an authorized 
representative thereof, please notify the sender by email and then destroy this 
message as well as all other existing copies.

 

 

Reply via email to