public HttpResponseMessage Patch([FromODataUri]int key, [FromBody]Orders entity)
{
...
return Request.CreateResponse(HttpStatusCode.OK, data);
}
public HttpResponseMessage Post(Orders value)
{
...
return Request.CreateResponse(HttpStatusCode.OK, value);
} |
var DataGrid = new ej.grids.Grid({
dataSource: DataManager,
query: new ej.data.Query().where('Deleted', 'equal', false),
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Normal', newRowPosition: 'Top' },
allowPaging: true,
height: 410,
width: 'auto',
allowResizing: true,
enableVirtualization: false,
enableColumnVirtualization: false,
pageSettings: { pageCount: 4, pageSize: 50 },
toolbar: ['Add', 'Edit', 'Delete', 'Update', 'Cancel'], |