Hi VijayMohan,
Greetings from Syncfusion support.
Query: “Grid CellEdit Template does not work”
We have analyzed the provided video demonstration, code example and found that ID property of EjsComboBox is different from the Field value. ID property of edit template component must be same as the Field value of that column.
But in your sample, you have used ID property as one variable (“Id”) which is different from columns field (“ProductId”) property, hence the reported issue is occurred. Kindly modify the ID property as ProductId to resolve the issue.
Refer the below modified code example.
<EditTemplate>
@{
<EjsComboBox ID="ProductId" Value="@((context as RequestProduct).ProductId)" TValue="int?" DataSource="@products">
<ComboBoxFieldSettings Text="Name" Value="Id"></ComboBoxFieldSettings>
</EjsComboBox>
}
</EditTemplate>
</GridColumn> |
Also in your code example, you have not enabled IsPrimaryKey property to any of the available column. Based on the PrimaryKey column value only CRUD operation will take place. So IsPrimaryKey property must be define to any of available column which has unique values.
Refer our UG documentation for your reference
Please get back to us if you have further queries.
Regards,
Vignesh Natarajan.