>Try to add updatecomplete event listener on your series.
This works perfectly! Thank you very much!

Olaf



-----Ursprüngliche Nachricht-----
Von: Deepak MS [mailto:[email protected]]
Gesendet: Montag, 6. Oktober 2014 09:08
An: [email protected]
Betreff: Re: ColumnChart: How to handle programatically modified 
"selectedIndex" property?

Hi,
Try to add updatecomplete event listener on your series.

Once you call series1.selectedIndex -= 1; , updatecomplete may trigger where 
selectedIndex would have got udpated and there you may call 
onSelectionChanged();


On Thu, Oct 2, 2014 at 1:48 PM, Krüger, Olaf <[email protected]> wrote:

> Hello,
> I'd like to change the "selectedIndex" property of a ColumnChart
> series programmatically.
> Cause doing this programmatically no "change" event is fired and I
> have to call the 'change' event handler manually.
> The problem is, that the "selectedIndex" property is not updated
> immediately, seems that it's queued?
> Can anybody help?
>
>
> public function onReverseClick(event:Event):void {
>         trace(series1.selectedIndex);   // selectedIndex= 10
>         series1.selectedIndex -= 1;  // Is not updated immediately, is
> it queued?
>         trace(series1.selectedIndex);  // still 10
>
>         // Cause no change event is fired we have to call the event
> handler manually
>         onSelectionChanged();
> }
>
>
> public function onSelectionChanged():void {
>         trace(series1.selectedIndex); // selectedIndex  is still 10,
> is not updated at this time :-(
>
>         // Do something
>         // ...
> }
>
> Thanks,
> Olaf
>
> Meet Edscha at IZB in Wolfsburg,
> 14.10.-16.10.2014; Hall 7, Stand 7219!
> [Meet Edscha at IZB; Hall 7, Stand 7219!]<http://www.izb-online.com/>
>
> ________________________________
>
> Edscha Holding GmbH
> Sitz der Gesellschaft: Remscheid
> Registergericht: Wuppertal, HRB 22889
> Geschäftsführung: Francisco J. Riberas Mera, Francisco López Peña,
> David Vázquez Pascual, Torsten Greiner, Markus Kirchner, Hans-Peter
> Schulz und Volker Weiss
>
> Vertretungsberechtigt sind nur Geschäftsführer und schriftlich
> Bevollmächtigte.
>
> Solely Managing Directors or employees with a written proxy have got
> power of representation.
>
> Der Inhalt dieser E-Mail einschließlich etwaiger beigefügter Dateien
> ist vertraulich und nur für den Empfänger bestimmt. Sollten Sie nicht
> der bestimmungsgemäße Empfänger sein, ist Ihnen jegliche Offenlegung,
> Vervielfältigung, Weitergabe oder Nutzung des Inhalts untersagt. Bitte
> informieren Sie in diesem Fall unverzüglich den Absender und löschen
> Sie die E-Mail einschließlich etwaiger beigefügter Dateien von Ihrem System.
> Vielen Dank.
>
> The contents of this e-mail including any attachments are confidential
> and may be legally privileged. If you are not the intended recipient,
> any disclosure, copying, distribution or use of its contents is
> strictly prohibited, and you should please notify the sender
> immediately and then delete this e-mail including any attachments from your 
> system. Thank you.
>

Meet Edscha at IZB in Wolfsburg,
14.10.-16.10.2014; Hall 7, Stand 7219!
[Meet Edscha at IZB; Hall 7, Stand 7219!]<http://www.izb-online.com/>

________________________________

Edscha Holding GmbH
Sitz der Gesellschaft: Remscheid
Registergericht: Wuppertal, HRB 22889
Geschäftsführung: Francisco J. Riberas Mera, Francisco López Peña, David 
Vázquez Pascual, Torsten Greiner, Markus Kirchner, Hans-Peter Schulz und Volker 
Weiss

Vertretungsberechtigt sind nur Geschäftsführer und schriftlich Bevollmächtigte.

Solely Managing Directors or employees with a written proxy have got power of 
representation.

Der Inhalt dieser E-Mail einschließlich etwaiger beigefügter Dateien ist 
vertraulich und nur für den Empfänger bestimmt. Sollten Sie nicht der 
bestimmungsgemäße Empfänger sein, ist Ihnen jegliche Offenlegung, 
Vervielfältigung, Weitergabe oder Nutzung des Inhalts untersagt. Bitte 
informieren Sie in diesem Fall unverzüglich den Absender und löschen Sie die 
E-Mail einschließlich etwaiger beigefügter Dateien von Ihrem System. Vielen 
Dank.

The contents of this e-mail including any attachments are confidential and may 
be legally privileged. If you are not the intended recipient, any disclosure, 
copying, distribution or use of its contents is strictly prohibited, and you 
should please notify the sender immediately and then delete this e-mail 
including any attachments from your system. Thank you.

Reply via email to