Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143471 | Mar 21,2019 09:35 AM UTC | Apr 2,2019 09:53 AM UTC | JavaScript - EJ 2 | 10 |
![]() |
Tags: Grid |
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'], |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.