hi,
Because I need to set value to the Combobox after show,so I add a record to the store.
but it throw an error when I search it.
help me
thanks!
The form afterrender:
PHP Code:
objCustomer.store.loadData([{ NameCN: rs.customer.NameCN }]);
the error:
PHP Code:
updateIndexes: function (startIndex, endIndex) {
var ns = this.all.elements,
records = this.store.getRange(),
i;
startIndex = startIndex || 0;
endIndex = endIndex || ((endIndex === 0) ? 0 : (ns.length - 1));
for (i = startIndex; i <= endIndex; i++) {
ns[i].viewIndex = i;
ns[i].viewRecordId = records[i].internalId;
if (!ns[i].boundView) {
ns[i].boundView = this.id;
}
}
}