I have try to change return String(total) with return total.toString(), but
it's still Null return..

Or, maybe I did null value in here :

arrDataTranskrip[i][col.dataField]

I try to modify this code like this :

total = lengthArrayDataTranskrip;

and it's working.

I build this function to get a total sum from field in DataGrid that have
dataProvider as Array.

Thanks

----------------------------------------------------------------------------
-----------------------
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Tuesday, February 05, 2008 10:40 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Null Return when try to get total of sum from one
field

are you getting a total or not?
just do return total.toString();
 

Reply via email to