我正在项目中使用kendo complete for MVC.
我有一些表格的国家列表,我显示国家名称,但存储国家代码.
我有以下问题:当用户输入不在列表中的内容时,该值将发送到服务器.如何避免它们并发送空值(表示:没有选择值)?
这是我的代码:
@Html.Kendo()
.ComboBoxFor(model => model.CountryCode)
.BindTo(ViewBag.Countries as IEnumerable<SelectListItem>)
.Filter(FilterType.StartsWith)
.Placeholder("Country")
.HtmlAttributes(new { @class = "span9" })
Run Code Online (Sandbox Code Playgroud) 我需要在我的ASP.NET MVC应用程序中逐步展示,就像在ShowcaseView(https://github.com/amlcurran/ShowcaseView)中在Android中完成的那样.
你知道任何熟悉的东西的javascript框架吗?