-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
BugC: DropDownListC: FormFP: CompletedSync status with associated Feedback ItemSync status with associated Feedback ItemS: Wrappers (ASP.NET Core)S: Wrappers (ASP.NET MVC)SEV: Medium
Milestone
Description
Bug report
DropDownList editor in a Form component with ServerFiltering enabled causes a js exception.
Reproduction of the problem
- Enable ServerFiltering in the DropDownList editor:
@(Html.Kendo().Form<MVCFormValidation.Models.UserViewModel>()
.Name("formExample")
.HtmlAttributes(new { action = "/Home/Index", method = "POST" })
.Validatable(v =>
{
v.ValidateOnBlur(true);
v.ValidationSummary(vs => vs.Enable(false));
})
.Items(items =>
{
items.AddGroup()
.Label("Registration Form")
.Items(i =>
{
i.Add()
.Field(f => f.FirstName)
.Label(l => l.Text("First Name:"));
i.Add()
.Field(f => f.LastName)
.Label(l => l.Text("Last Name:"));
i.Add()
.Field(f => f.NumberOfShares)
.Label(l => l.Text("Number Of Shares:"));
i.Add().Field(m => m.Country.Id)
.Editor(e => e.DropDownList().DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCountries", "Home");
})
.ServerFiltering(true);
}).Filter(FilterType.Contains).DataTextField("Name").DataValueField("Id"))
.Label("Country");
i.Add()
.Field(f => f.Email)
.Label(l => l.Text("Email:"));
i.Add()
.Field(f => f.DateOfBirth)
.Label(l => l.Text("Date of Birth:").Optional(true));
i.Add()
.Field(f => f.Agree)
.Label(l => l.Text("Agree to Terms:"));
});
})
)
Current behavior
On page load a js exception is thrown:
Uncaught Error: Syntax error, unrecognized expression: #
Expected/desired behavior
No exceptions.
Environment
- Kendo UI version: 2023.3.1114
- jQuery version: 3.4.1, 3.7.1
- Browser: [all]
Metadata
Metadata
Assignees
Labels
BugC: DropDownListC: FormFP: CompletedSync status with associated Feedback ItemSync status with associated Feedback ItemS: Wrappers (ASP.NET Core)S: Wrappers (ASP.NET MVC)SEV: Medium