2014-10-06 87 views
0

我正在从我的网格中检索记录。Record Get方法似乎不起作用

var record = myGrid.store.getAt(j); 

当我实地考察一下在record.data我得到一个字符串值:

console('record.data ' + record.data['groupSelected']) //something!! 

然而,当我使用record.get方法得到了一个未定义。

console('record.get[groupSelected] ' + record.get['groupSelected']) //nothing!! 

我是否正确使用记录对象?

回答

1

错误类型的括号。

console('record.get(groupSelected) ' + record.get('groupSelected')) //nothing!! 

应该这样做。

+0

愚蠢的我。谢谢你才意识到自己 – 2014-10-06 10:07:52