javascript - Default value in grid -
i have grid/list:
items: [ { xtype: 'gridpanel', reference: 'list', resizable: false, width: 200, title: '', forcefit: true, bind: { store: '{schedules}' }, columns: [ { xtype: 'gridcolumn', dataindex: 'revision', text: 'revision' } ],
i want add listener record @ index 0 in store selected default.
i've tried playing selmodel not working intended.
do on viewready
event:
{ xtype: 'gridpanel', listeners: { 'viewready': function(g) { g.getselectionmodel().select(0); } }, // .... }
Comments
Post a Comment