Javascript 如何关闭剑道下拉列表的缓存
我有一个剑道模式包含多个下拉列表。它们通常工作正常,但问题是,无论何时提交模式,当它重新打开时,它都会保留上一次提交的每个下拉列表中的值。ddl本身使用存储在ViewData字典中的列表填充。我试图找到一种方法来关闭下拉列表的缓存,但似乎没有一种方法可以调用它Javascript 如何关闭剑道下拉列表的缓存,javascript,jquery,html,asp.net-mvc,kendo-ui,Javascript,Jquery,Html,Asp.net Mvc,Kendo Ui,我有一个剑道模式包含多个下拉列表。它们通常工作正常,但问题是,无论何时提交模式,当它重新打开时,它都会保留上一次提交的每个下拉列表中的值。ddl本身使用存储在ViewData字典中的列表填充。我试图找到一种方法来关闭下拉列表的缓存,但似乎没有一种方法可以调用它 @(Html.Kendo().Window() .Name("addPopUp") .Scrollable(false) .Width(800) .Height(300)
@(Html.Kendo().Window()
.Name("addPopUp")
.Scrollable(false)
.Width(800)
.Height(300)
.Modal(true)
.Title("Add Report")
.Visible(false)
.Content(@<text>
<div>
<div class="addReports">
<div>
<label for="ddlAddReportCategory">List1:</label>
<br />
@(Html.Kendo().DropDownList()
.Name("List1")
.DataTextField("Text")
.DataValueField("Value")
.HtmlAttributes(new { style = "width:100%" })
.BindTo(ViewData["isma"] as IEnumerable<SelectListItem>)
)
</div>
<div>
<label for="ddlAddReportMonth">List2:</label>
<br />
@(Html.Kendo().DropDownList()
.Name("List2")
.DataTextField("Text")
.DataValueField("Value")
.HtmlAttributes(new { style = "width:100%" })
.BindTo(ViewData["aum"] as IEnumerable<SelectListItem>)
)
</div>
<div>
<label for="ddlAddReportYear">List3:</label>
<br />
@(Html.Kendo().DropDownList()
.Name("List3")
.DataTextField("Text")
.DataValueField("Value")
.HtmlAttributes(new { style = "width:100%" })
.BindTo(ViewData["perf"] as IEnumerable<SelectListItem>)
)
</div>
<div>
<label for="ddlAddReportYear">List4:</label>
<br />
@(Html.Kendo().DropDownList()
.Name("List4")
.DataTextField("Text")
.DataValueField("Value")
.HtmlAttributes(new { style = "width:100%" })
.BindTo(ViewData["fund"] as IEnumerable<SelectListItem>)
)
@(Html.Kendo().Window())
.Name(“添加弹出窗口”)
.可滚动(错误)
.宽度(800)
.高度(300)
.模态(真)
.标题(“添加报告”)
.可见(假)
.内容(@
清单1:
@(Html.Kendo().DropDownList())
.名称(“列表1”)
.DataTextField(“文本”)
.DataValueField(“值”)
.HtmlAttributes(新的{style=“width:100%”)
.BindTo(视数据[“isma”]为IEnumerable)
)
清单2:
@(Html.Kendo().DropDownList())
.名称(“列表2”)
.DataTextField(“文本”)
.DataValueField(“值”)
.HtmlAttributes(新的{style=“width:100%”)
.BindTo(视数据[“aum”]为IEnumerable)
)
清单3:
@(Html.Kendo().DropDownList())
.名称(“清单3”)
.DataTextField(“文本”)
.DataValueField(“值”)
.HtmlAttributes(新的{style=“width:100%”)
.BindTo(视数据[“性能”]为IEnumerable)
)
清单4:
@(Html.Kendo().DropDownList())
.名称(“清单4”)
.DataTextField(“文本”)
.DataValueField(“值”)
.HtmlAttributes(新的{style=“width:100%”)
.BindTo(视数据[“基金”]为IEnumerable)
)
确保模式下拉列表在每次提交后不会保留其值的正确方法是什么?没有重置功能。您必须从下拉列表中选择所需的值