Its unclear from the documentation how to achieve this. I am trying to improve the efficiency of my grid by adding the initial data to my page model and using that for the initial bind. Subsequently I want to update the grid via ajax. I am clear on the ajax setup for the Data Manager.
How can I give it my initial data AND an Insert URL AND an Update URL like the following pseudo code?
var dataManager = new ej.DataManager({
DATA: MYINITIALDATA,
updateUrl: stringFormat("{0}enquiry/Update", self.baseuri),
insertUrl: stringFormat("{0}enquiry/Insert?Id={1}&enquiryId={2}",
self.baseuri,
routingId,
self.enquiryId),
adaptor: new self.adaptor()
});
Regards,
Duncan