Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有剑道下拉/多选...每个都链接到一个控制器方法,该方法返回 37,000 个项目...
显示数据需要很多时间...
所以,我认为我们不必将 37000 项返回到下拉列表。
是否有可能停止该缓冲问题?
如果您使用的是 multiSelect 考虑使用 MinLength 选项:
Html.Kendo().ComboBoxFor(m => m.ObjectID) //start autocompleting only after 3 char .MinLength(3)
正如第一条评论中所建议的那样,您也可以在控制器操作中仅采用前 n 个结果。