flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak MS <megharajdee...@gmail.com>
Subject Re: ColumnChart: How to handle programatically modified "selectedIndex" property?
Date Mon, 06 Oct 2014 07:07:31 GMT
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 <OKrueger@edscha.com> 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message