<code>
var customAdaptor = new ej.ODataV4Adaptor().extend({
update: function (dm, keyField, value, tableName) {
dm.dataSource.headers =[{ “If-Match”: VALUE_OF_ETAG }];
return {
type: "PATCH",
url: dm.dataSource.url.replace(/\/*$/, tableName ? '/' + tableName : '') + '(\'' + value[keyField] + '\')',
data: JSON.stringify(value),
accept: this.options.accept
};
}
})
</code> |
System.Web.HttpContext.Current.Request.Headers["If-Match"]; |