ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
How to calculate and fill in values in other cells when a cell finished editiong
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to calculate and fill in values in other cells when a cell finished editiong (Read 3456 times)
lsl
Pro Deluxe
Jr. Member
Posts: 67
How to calculate and fill in values in other cells when a cell finished editiong
«
on:
September 18, 2014, 09:32:50 am »
I want to fill in the column "Each" after users finished editing No. of Packages (pic1)
formula: Each = QTY/Packages
how should i do?
«
Last Edit: September 18, 2014, 09:34:42 am by lsl
»
Logged
paramvir
Administrator
Hero Member
Posts: 6307
Re: How to calculate and fill in values in other cells when a cell finished editiong
«
Reply #1 on:
September 18, 2014, 01:33:35 pm »
Please follow this example:
http://paramquery.com/pro/demos/render_cells
Logged
lsl
Pro Deluxe
Jr. Member
Posts: 67
Re: How to calculate and fill in values in other cells when a cell finished editiong
«
Reply #2 on:
September 18, 2014, 01:45:44 pm »
there are 2 problems using "render"
1. we need the result to be filled in "Each" field before the changes are committed to DB
2. we already have render functions which doing number formatting in that column.
Logged
paramvir
Administrator
Hero Member
Posts: 6307
Re: How to calculate and fill in values in other cells when a cell finished editiong
«
Reply #3 on:
September 18, 2014, 02:07:05 pm »
make changes in the rowData in cellSave event
ui.rowData["Each"] = calculated value;
and
call refreshCell( {dataIndx: 'Each', rowIndx : ui.rowIndx}) after that.
«
Last Edit: September 18, 2014, 02:14:45 pm by paramquery
»
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
How to calculate and fill in values in other cells when a cell finished editiong