No, I haven't tried that - I was unsure of how to reference the length of a column, you think datagrid.dataprovider.length is it? my only question is how it knows what grid exactly - say the name was Stock, where would it go in this code? I have the fundamental coding done, like you have here - I'm just trying to figure out to access the column length and data.

Chris Velevitch wrote:
Have you tried something like:-

<cfsavecontent variable="gridtotaller">
var total=0;
for(var i = 0; i < datagrid.dataprovider.length; i++)
{
total = total + datagrid.dataprovider[i]["columname"]
}
total_field = total;
</cfsavecontent>


...

<cfgrid ... onChange="#gridtotaller#">

or something similar?


Chris

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

--- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to