grid data 設置了combo box, 也有用onValidation去驗證使用者輸入的值是否有存在於清單中, 當值不在清單時, 移出cell會跳警示, 但是在grid validation時(grid.Validate / grid.isValid), 抓不到這個錯誤, 應該要怎麼判斷 ?
<div name="AFENumber" field="AFENumber" headeralign="center" width="100">
AFE Number
<input property="editor" class="mini-combobox" valueField="AFE" textField="AFE" style="width: 100%;" value=""
allowInput="true"/>
</div>
functiononComboValidation(e) { var items = this.findItems(e.value); if (e.value!="" && (!items || items.length == 0)) { e.isValid = false; e.errorText = "Value enteredis not in the list."; } }
|