2015-10-17 26 views
0

我正在使用kendo与angular.js,所以在我的第一个下拉列表中,我有一个模型,它捕获选择,但由于某种原因,当事件触发时,模型尚未更新...剑道级联 - 射击太早?

<input kendo-drop-down-list 
     id="ddServiceLocations" 
     k-options="ddServiceLocationsOptions" 
     ng-model="enterClaimsService.model.serviceLocationSelection" /> 

<select kendo-drop-down-list 
     id="ddJurisdictions" 
     k-options="ddJurisdictionsOptions" 
     k-cascade-from="'ddServiceLocations'" 
     ng-model="enterClaimsService.model.jurisdictionSelection"></select> 

进行选择时在第一中所做的,它不火我dataSource第二个盒子,但enterClaimsService.model.serviceLocationSelection对象在这一点上是不明确?当该函数退出时,模型将变得没有问题。如何在数据源被调用之前让模型更新?

回答

0

不确定这是否会起作用,但会尝试延迟下拉列表的初始化,直到填充此特定字段。如何解释here