Ext.JS商店记录未定义

时间:2010-08-18 20:17:22

标签: asp.net asp.net-mvc vb.net extjs

var debtProtectionId = 0
    // get the selected id of debt protection dropdown
    if (mainPanel.generalPanel.calculationsFieldSet.debtProtection.getValue() != '') {
        debtProtectionId = mainPanel.generalPanel.calculationsFieldSet.debtProtection.getValue();
    }
    // get the store record with this id
    var storeRecord = planCombinationsStore.getAt(debtProtectionId)

当我运行代码时,它表示“storeRecord未定义”。

这可能是什么原因?

1 个答案:

答案 0 :(得分:3)

Store.getAt期望其内部集合的索引。你的意思是Store.getById吗?