I want to share the solutions

QuestionsI want to share the solutions
Cristian Engelmann asked 7 years ago

When the user change the data row and saved
the function $opt["edit_options"]["beforeSubmit"] = "function(post,form){ return validate_form_once(post,form); }";
It is perfect. But it's necessary show outside grid total sum.
this is my solutions.

$opt["edit_options"]["afterSubmit"] = "function(){ addsalegrid();return [true,''];}";

function addsalegrid()
{
numberform = "<?php echo $cid; ?>";//when the invoice number is diferent to ID record.
functionaddsale(numberform);//Show total outside the grid.
}

I hope to help everybody!
thank you Abu for your phpgrid!

1 Answers
Abu Ghufran answered 7 years ago

Thanks for sharing.

Your Answer

11 + 16 =

Login with your Social Id:

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?