[flexcoders] Re: Can't get value after labelfunction

2006-12-01 Thread bsdensmore
[mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Thursday, November 30, 2006 5:23 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Can't get value after labelfunction Ok, I have it working First your dataProvider item objects do NOT have properties for all

RE: [flexcoders] Re: Can't get value after labelfunction

2006-12-01 Thread Tracy Spratt
To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can't get value after labelfunction Thanks for trying Tracy. Any ideas of what route I should go? Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: While this method works, I

RE: [flexcoders] Re: Can't get value after labelfunction

2006-12-01 Thread Tracy Spratt
@yahoogroups.com Subject: RE: [flexcoders] Re: Can't get value after labelfunction Absolutely. Use a custom item object as I proposed earlier. I'll have an example on CFLEX.NET in an hour or so. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED

[flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread bsdensmore
Thanks Ben and Tracy, I was thinking that I might need to use an item renderer but was hoping to not have to. I just struggled with using them to implement a checkbox into the DataGrid. I still don't get how to write them effectively. I need to do some more reading to try and get a better grip.

RE: [flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread Tracy Spratt
:[EMAIL PROTECTED] On Behalf Of bsdensmore Sent: Thursday, November 30, 2006 8:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can't get value after labelfunction Thanks Ben and Tracy, I was thinking that I might need to use an item renderer but was hoping to not have to. I just

Re: [flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread Anatole Tartakovsky
@yahoogroups.com *Subject:* [flexcoders] Re: Can't get value after labelfunction Thanks Ben and Tracy, I was thinking that I might need to use an item renderer but was hoping to not have to. I just struggled with using them to implement a checkbox into the DataGrid. I still don't get how to write them

[flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread bsdensmore
[mailto:[EMAIL PROTECTED] On Behalf Of bsdensmore Sent: Thursday, November 30, 2006 8:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can't get value after labelfunction Thanks Ben and Tracy, I was thinking that I might need to use an item renderer but was hoping to not have

RE: [flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread Tracy Spratt
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Anatole Tartakovsky Sent: Thursday, November 30, 2006 2:01 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Can't get value after labelfunction Tracy, I am not sure

RE: [flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread Tracy Spratt
@yahoogroups.com Subject: [flexcoders] Re: Can't get value after labelfunction I keep going in circles with this. If I don't use the ClassFactory I can get the calculations to work but I can't figure out how to send the value back to the dataProvider. If I try to use the ClassFactory and set my

[flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread bsdensmore
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bsdensmore Sent: Thursday, November 30, 2006 1:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can't get value after labelfunction I keep going in circles with this. If I don't use the ClassFactory I can

RE: [flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread Tracy Spratt
@yahoogroups.com Subject: [flexcoders] Re: Can't get value after labelfunction yes, they do. I'm just doing a very small example to get my head around this. I actually took the ClassFactory stuff out and went to using the itemrenderer as is. It works but now I'm running into the issue of my datagrid losing

RE: [flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread Tracy Spratt
, November 30, 2006 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can't get value after labelfunction yes, they do. I'm just doing a very small example to get my head around this. I actually took the ClassFactory stuff out and went to using the itemrenderer as is. It works but now

[flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread bsdensmore
Of bsdensmore Sent: Thursday, November 30, 2006 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can't get value after labelfunction yes, they do. I'm just doing a very small example to get my head around this. I actually took the ClassFactory stuff out and went

RE: [flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread Tracy Spratt
it on CFLEX. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bsdensmore Sent: Thursday, November 30, 2006 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can't get value after labelfunction yes, they do

RE: [flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread Tracy Spratt
: [flexcoders] Re: Can't get value after labelfunction Thanks Tracy. Like I said, it is working now but I'm running into the issue with scrolling. I thought overriding the data() method was supposed to stop that from happening. But, maybe because I'm not dispatching an event from the itemrenderer

RE: [flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread Tracy Spratt
: Thursday, November 30, 2006 5:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can't get value after labelfunction instead of adding the calculation to the value object, which is scoped locally, try adding it to the data object: super.data.net_lbs = total; --- In flexcoders

RE: [flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread Tracy Spratt
do it differntly. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Thursday, November 30, 2006 5:23 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Can't get value after labelfunction

[flexcoders] Re: Can't get value after labelfunction

2006-11-29 Thread ben.clinkinbeard
Tracy is right, you should use an itemRenderer for this. calculatedValueRenderer should override the data method (like all good little renderers do :)) and in the method retrieve the values to be calculated as well as updating the calculated value in the dataProvider. Using the ClassFactory