RE: [flexcoders] modelChanged event and mx:Tree

2006-01-21 Thread Matt Chotin










Not sure. Tree should be much better in
Flex 2. Sorry!











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Johannes Nel
Sent: Wednesday, January 18, 2006
1:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] modelChanged
event and mx:Tree





Hi All

I have a model which dispatches the model change event which in turn gets
caught by the mx:Tree (i have established this by subclassing the tree and
checking if the events come in), but my tree just does not update and to add
insult to injury after that it stops dispatching nodeOpen events in subnodes.

any tips or tricks that i am missing here?
thanks
-- 
j:pn 








--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] modelChanged event and mx:Tree

2006-01-19 Thread Alias
That whole write your own damn tree component trick?

Snark ;)

Alias

On 1/18/06, Johannes Nel [EMAIL PROTECTED] wrote:
  Hi All

  I have a model which dispatches the model change event which in turn gets
 caught by the mx:Tree (i have established this by subclassing the tree and
 checking if the events come in), but my tree just does not update and to add
 insult to injury after that it stops dispatching nodeOpen events in
 subnodes.

  any tips or tricks that i am missing here?
  thanks
  --
 j:pn


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



  
  YAHOO! GROUPS LINKS


  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]

  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

  



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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] modelChanged event

2005-07-14 Thread Alex Uhlmann
Timing is probably your problem. But anyway there's another solution to 
accomblish your task you might want to consider. If products is your 
dataProvider Array then you can bind to it via

mx:Binding
source=products destination=this.productsChanged /

and handle it via getter / setter properties

public function get productsChanged() : Array
{
 return _productsChanged;
}

public function set productsChanged( newProductsChanged : Array)
{
  update( newProductChanged  );
  _productsChanged = newProductsChanged;
}

private var _productsChanged : Array;  

in update you can access the updated dataProvider, delegating to other tasks 
such as calculating a sum. The textfields could then i.e. bind to simple 
properties of your model.

Best,
Alex

--
Alex Uhlmann
Software Engineer
iteration::two


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
Behalf Of Johnny
Sent: 14 July 2005 01:45
To: flexcoders@yahoogroups.com
Subject: [flexcoders] modelChanged event


Hi,

I have a DataGrid control and use addItem and removeItemAt method to
add and remove items.  This works properly.  At the same time, I need
to dynamically calculate the sum for certain field in the DataGrid and
bind the result to a text field.

I add a listener for modelChanged event of dataProvider and add a sum
function there.  But the sum function never gets triggered at all even
after an item is added, deleted or all items are removed.

The array that binds to the dataProvider will create after a remote
service call.  The listener is created at the initialize function of
the appliation.  Could this be a problem?

Thanks,
J




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





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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] modelChanged event

2005-07-13 Thread Kent Henneuse
I think it stems from the use of an array in databinding.  One way to
fix this is to reassign your dataprovider.  Also you could broadcast a
model change event upon completion of the changes.  This would hopefully
then trigger the sum to change.

I had a similar issue a while back and Tracy helped me out.
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09669.html

-Kent

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Johnny
Sent: Wednesday, July 13, 2005 5:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] modelChanged event

Hi,

I have a DataGrid control and use addItem and removeItemAt method to
add and remove items.  This works properly.  At the same time, I need
to dynamically calculate the sum for certain field in the DataGrid and
bind the result to a text field.

I add a listener for modelChanged event of dataProvider and add a sum
function there.  But the sum function never gets triggered at all even
after an item is added, deleted or all items are removed.

The array that binds to the dataProvider will create after a remote
service call.  The listener is created at the initialize function of
the appliation.  Could this be a problem?

Thanks,
J



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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/