javascript - How to check mark a check column in a grid? -
i have check column on grid need programatically check mark.
here how check column scripted:
columns: { items:[ { itemid: 'checkcolumn', xtype: 'selectallcheckcolumn', cls: 'select-all-check-column', dataindex: 'checked', hideable: false },
var grid = ext.componentquery.query('grid[itemid=gridid]')[0]; var view = grid.getview(); var record = view.getrecord({0}); var active = record.get('active'); record.set('active', !active);
Comments
Post a Comment