Hi,
I have an ASP.net form that has an UltraWebGrid on it. Each row has a column called "Extended Price" which is the product of two entries in the band. This is working fine. I want to sum all of the entries in the extended price column and have it display in a textbox on my form(outside of the grid). I swear I had this working before but have been away from it for awhile - andI can't seem to get it to work now. What is ht best way to get this done?
Thanks in advance for your help with this.
JCC
Magued,
Thanks so much for your response.
I left out an important bit of information.... I have the subtotal calculated and displaying in the footer of the Web Grid using this code:
.Footer.Total = Infragistics.WebUI.UltraWebGrid.SummaryInfo.Sum
This is working great. What I would like to do is access the amount displayed in the footer and display it in a textbox outside of the grid as I then have to take this amount and add it to additonal values outside of the grid. Is this possible?
I have tried this (and a number if variations)using BLOCKED SCRIPT
var footer = row.getcell(7).getvalue(SummaryInfo.Sum)
document.form1.txtSubtotal.Text = footer
but can't get it to work
I really appreciate your help with this.
On the client side you will need to get the WebTextEdit object, you can use the igedit_getById function and provide the ClientID.
var edit = igedit_getById("WebTextEdit1");
To set the value in the textedit you can use the setValue() method on the object.
edit.setValue("your value");
For the sum you can either write your own function or use the WebCalcManager.
Magued