Hi Am using JQGrid in my application,I want to show success messages or errors on the dialog boxes after inserting/updating/deleting in the database.Can any one help on these.
1 Answers
The answer is depend on the editing mode which you use. Because you wrote about inserting and deleting the data I suppose you use the form editing. In the case you can use afterSubmit
or afterComplete
events to display additional information for the user after the saving of the data on the server. The errorTextFormat
event is practical to displaying detailed error message generated by the server. The exact usage of the events depand on how you use editing mode. You can use editGridRow
inside of ondblClickRow
event handler for example (see here). In the case you should place the event handler in the list of editGridRow
parameters which you use. If you use navigator buttons instead (see here) then you can define additional options of editGridRow
and delGridRow
functions as the prmEdit, prmAdd, prmDel
parameters of the navGrid. I hope you understand what I mean.