Alert

QuestionsAlert
Gustavo Lazaro asked 3 years ago

Abu estimated. There is a function in php grid equivalent to alert javascript? The idea is to respect the aesthetics of the grid. Thank you

5 Answers
Abu Ghufran answered 3 years ago

Hello,

On which event do you want to show alert?
If you tell exact scenario, it will help.

Gustavo Ageitos answered 3 years ago

In an insert () before recording a record. check that there is no such record. If so, the dialog box should say "Document already entered."

Abu Ghufran answered 3 years ago

Use
phpgrid_error("Document already entered.");
or
phpgrid_msg("Document already entered.");

Gustavo Ageitos answered 3 years ago

Dear, the phpgrid_error instruction ("message") works, but pressing F12 in Chrome see that generates a "500 (Internal Server Error)". And phpgrid_msg ("message") instruction, shows no sign.

Abu Ghufran answered 3 years ago

Please refer demos/editing/bulk-edit.php (line 150)
Try setting description using custom button. It will show the alert box.

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

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

Let us improve this post!