calculation in excelview

Questionscalculation in excelview
Andy asked 6 years ago

Dear friends:

i need to calculate a cell value from other cell value in excel view.

please help.
thanks.

1 Answers
Abu Ghufran answered 6 years ago

Hello,

This is not supported in lib, but alternate solution is mentioned here.
Refer: http://stackoverflow.com/questions/9655426/jqgrid-setcell-calculated-value

You can set afterSaveCell event in phpgrid control using following code.

$opt["afterSaveCell"] = "function (rowid, name, val, iRow, iCol) { ….. }";

$g->set_options($opt);

Above will manage the clientside change on grid. If you want server side table update, you need to write on_update event and run an extra update sql call based on posted data.

Your Answer

5 + 4 =

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!