Hi Im experiencing undefined value in grid selectionmodel.

Code:
for(var ctr=0;ctr<=m.length;ctr++){
    m[ctr].get('grid');
}
the m[ctr] is undefined causing the m[] is not reading the values inside m[].