Within Ajax, determine which record is in dialog
Within Ajax, determine which record is in dialog
Hi
If you have a response from the server indicating one the records you are updating has a problem, it would be helpful to know which record is currently being shown in the Editor dialog. Getting the record id when clicking on the row is out because you may have next/prev buttons within the dialog, as shown in your examples.
Thanks
Peter
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi Peter,
The
modifier()
method can be used to determine what record is being edited - it simply returns whateveredit()
was called with in the first parameter (i.e. a row node or index typically). In that way you can use that to query the DataTable to get the row's data.Regards,
Allan
Hi
Thanks, that works.
Peter