剑道角多选集中选择值 [英] Kendo Angular multiselect set selected values
本文介绍了剑道角多选集中选择值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用多选剑道与角剑道指令并与远程数据源I'm。我正尝试设置所选项目时,应用程序启动,但没有运气。谁能帮帮我吗?
I´m using Kendo multiselect with Angular-Kendo directives and with remote datasource. I´m trying to set the selected items when the application starts but with no luck. Can anyone please help me?
请参阅code在这里: JS斌
See Code here: JS Bin
推荐答案
您可以只是做一个自定义的指令,并通过您要预先选择的价值的项目
在多选指令的属性,看看这普拉克,了解指令我用的。
You can just make a custom directive, and pass in the items you want selected beforehand to the value
attribute of the multiselect directive, have a look at this Plunk to see the directive I use.
这篇关于剑道角多选集中选择值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文