2015-10-17 71 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