I have a dropdownListFor in a View which is shared within the tabs in the Kendo Tabstrip. Due to cannot override component name when bound to a model expression error I have commented the Name configuration
My Dropdown:
@(Html.Kendo().DropDownListFor(m => m.Country)
//.Name("city-" + (int)Model.CityID) -- Commented to resolve the error
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCities", "Home", new { countryID = (int)Model.CountryID})Type(HttpVerbs.Post);
});
})
.OptionLabel("(Please Select))
.HtmlAttributes(new
{
data_bind = "value: cityValue, events: { change: selectedCityChanged }"
})
)
I have tab strip in which i don't have any issue with the first tab, but for other tabs, the control is not binded properly. Earlier i had the Name to prevent this bind issue.. Need help to fix this issue
I'm using Kendo 2024.3.806 version and ASP.NET Core MVC 8
First Tab:

Second Tab:

My Dropdown:
@(Html.Kendo().DropDownListFor(m => m.Country)
//.Name("city-" + (int)Model.CityID) -- Commented to resolve the error
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCities", "Home", new { countryID = (int)Model.CountryID})Type(HttpVerbs.Post);
});
})
.OptionLabel("(Please Select))
.HtmlAttributes(new
{
data_bind = "value: cityValue, events: { change: selectedCityChanged }"
})
)
I have tab strip in which i don't have any issue with the first tab, but for other tabs, the control is not binded properly. Earlier i had the Name to prevent this bind issue.. Need help to fix this issue
I'm using Kendo 2024.3.806 version and ASP.NET Core MVC 8
First Tab:
Second Tab: