I have an application using kendo tap strip, so all fields should have unique name in all opened tabs, the only problem I have with that is how to create more than one foreign key editor template for the same property name with unique name for more than one grid since the combo box should has the same name as the view model property name, if I create more than one combo box editor template with the same name it will return a conflict in the system, so are there any workaround that I can use here?
In simple word Suppose I have two grid (selling order and purchase order) both grids has foreign key column called "Supplier" -the foreign key called in both tables SupplierID-, I create two editor template one for each grid here as my template (both template are identical)
@model object
@using MyResource =Resources.Layout;
@( Html.Kendo().ComboBox()
.DataTextField("SupplierID")
.DataValueField("SupplierID").Name("SupplierID")
.Placeholder(MyResource.SelectSupplier)
.Filter("contains").DataSource(source =>
{source.Read(read =>
{ read.Action("GetSuppliers", "Item");
}).ServerFiltering(true);
}).AutoBind(false))
So if I open both grids an error will occur because both grid has foreign key combo box with the same name (SupplierID)