Adding data on create 2
Adding data on create 2
Hi Allan,
I read this (http://datatables.net/forums/discussion/12649/adding-data-on-create) and I have a similar problem. But in my case, I want to add a field in the database that includes the client id + an AutoNumber (ex. 1-500, CustomerID-AutoNumeric). I have tried using the OnCreate event, but i cant handle it from the server side. Any tips?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi,
The
create
event (onCreate
is its old name, but will still work!) is triggered immediately before Editor updates the table, based on the data returned from the server.Are you looking to send additional data to the server on create? If so, the
preSubmit
event is the one to use (orajax.data
) - add the data to the object that Editor will send to the server. Then you'll be able to access it and process that data at the server-side.Allan