hi .In the example below, the TemperamentPropertyCategoryId field is defined as Identity in the database. When using edit mode in grid, in the Add field, the TemperamentPropertyCategoryId field is disabled and if this field is not filled, the Save button does not work and if we set this field An error occurs. If the 'isidentity' property is used, the save button still does not work. Please see screenshot attachments.
------------------------------------------
<EjsGrid ID="Grid1" @ref="@grid" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" })" AllowPaging="true">
<GridEditSettings AllowAdding="true" AllowDeleting="true" AllowEditing="true" Mode="@EditMode.Dialog"></GridEditSettings>
<EjsDataManager Url="/api/TemperamentPropertiesCategory1" Adaptor="Adaptors.WebApiAdaptor"></EjsDataManager>
<GridColumns>
<GridColumn Field="TemperamentPropertyCategoryId" IsIdentity="true" HeaderText="TemperamentPropertyCategory Id" IsPrimaryKey="true" TextAlign="@TextAlign.Right" Width="120"></GridColumn>
<GridColumn Field="TemperamentPropertyCategoryName" HeaderText="TemperamentPropertyCategory Name" Width="150"></GridColumn>
</GridColumns>
</EjsGrid>
Attachment:
edit_6cbab872.rar