Hi Ivashko,
Thanks for contacting Syncfusion Support,
We have validated your requirement, By default we have dropdown edit option for foreignKey columns, so could you please remove the EditType("dropdownedit") in your sample, its resolve your problem, kindly please refer the below code snippet for more information,
|
@Html.EJS().Grid("ForeignKey").DataSource((IEnumerable<object>)ViewBag.datasource).AllowFiltering().Columns(col =>
{
col.Field("CustomerID").ForeignKeyField("CustomerID").ForeignKeyValue("CustomerName").DataSource(
(IEnumerable<object>)ViewBag.dataSource2).HeaderText("Customer Name").Width("150").Add()
. . . . . . .
}). Render() |
Regards,
R.Dhivya