Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
Column sums/totals automatically updating - how to?
04/01/2012
23:58
Avatar
bcates
New Member
Members
Forum Posts: 1
Member Since:
05/01/2012
sp_UserOfflineSmall Offline

Excellent product, and excellent accompanying tutorial.  Thank you very much.

My specific question with a specific reference:

Referring to the tutorial for a basic example, you have a :

Date,Client,Amount,Tax,Total that correspond to an invoice number.

The dollar amounts for amount is $1000, tax is 0; so total is $1000.

I would like if I enter 500 into tax, that it calculates the total and displays it as 1500.  I know that in this basic page total is not part of a calculation, but I'd like to learn how to incorporate that into my project.

Please advise if this is possible and point me in the right direction.

Thanks a lot,

Ben

05/01/2012
02:23
Avatar
nelsonm
Michigan, USA
Member
Members
Forum Posts: 106
Member Since:
20/08/2011
sp_UserOfflineSmall Offline

jqGrid does not do calculations on data, it just creates tables and forms.  Calculations on data generally happens on the:

  1. server side in the sql query statement when you query for data or in the php code after the query.
  2. and/or on the client side in javascript after user input.

jqGrid, however, does allow you to define events that trigger functions to allow you to do calculations at various points and fields. Either way, you will have to do the coding to calculate subtotals, taxes, surcharges, totals and so on…

good luck.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
32 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information