javascript - Store.getGroups returns an array of undefined objects in Extjs 5.1 -


i stuck in 1 situation have expand selected row of group grid made in extjs 5.1. store.getgroups returns array of undefined objects,

can 1 had similar issue, working fine extjs 4.2.x?

fiddle code - works in 4.2.x, doesn't work in 5.1

https://fiddle.sencha.com/#fiddle/8mi

please help.

the getgroups() method returns ext.util.collection

you the first group name following way:

var firstgroupname = store.getgroups().getat(0).getgroupkey(); 

check out fiddle.

to groups use getrange() method.

var groups = store.getgroups().getrange(); 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -