角剑道降下来 [英] Angular Kendo Drop down
问题描述
我使用角剑道UI进行了大量组件,但也遇到了我似乎无法来解决问题。我有以下角度选择对哪些工作正常,并正确绑定选中的值给NG-模式。
I am using angular-kendo ui for a number of components but have encountered an issue which I can't seem to resolve. I have the following angular select which works fine and binds the selected value to the ng-model correctly.
<select ng-model="link.CompanyId" ng-options="obj.Id as obj.Name for obj in link.PossibleCompanies"></select>
然后我加入剑道 - 下拉列表参数将其转换为一个剑道DD和它停止结合NG-模式的选定值。
Then I add the kendo-drop-down-list argument to convert it to a Kendo DD and it stops binding the selected value of ng-model.
<select kendo-drop-down-list ng-model="link.CompanyId" ng-options="obj.Id as obj.Name for obj in link.PossibleCompanies"></select>
任何人都可以点我在我能使用的剑道DDL具有角,仍然有NG-模型绑定的选定值列表中的解决方案的正确方向。
Can anybody point me in the right direction of a solution for me able to use the kendo ddl with angular and still have the selected value of ng-model bind to the list.
推荐答案
我想你应该尝试使用 K-NG-模型
和 K- NG-选项
,而不是 NG-选项
和 NG-模型
。
I think you should try using k-ng-model
and k-ng-options
rather than ng-options
and ng-model
.
这篇关于角剑道降下来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!