datagrid with sum of all textboxes in another textbox

G

Guest

hi
iam looking for any javascript or vbscript
to add sum all the textboxes present in the datagrid.
and sum must come in another total textbox.
this should fire when the user enter the numeric value....
thsi should be @client Side

help needed

thanks
 
E

Eliyahu Goldin

Directions:

Datagrid renders as a <table>. In javascript you can access the table object
corresponding to the grid. It has a collection of rows. Every row has a
collection of cells. You now what you put inside the cells. So loop through
the row collection, access the cells you need and make your total.

Eliyahu
 
G

Guest

hi,

how to the rowid, in vbscript
and textbox id in vbscript,

can u pls give me anyreferences...
thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top