On Extjs Grid Panel, you need to select a few lines and send them to Ajax .

I am able to send one by one.

Tell me how to implement the selection of several lines?

Need to track Ctrl or are there other ways?

    1 answer 1

    When creating Ext.grid.Panel you need to override the creation of selModel . For example, in the panel constructor you define

     createSelModel: function() { var me = this; if (me.mode === 'SINGLE') me.mode = 'SINGL'; me.objs.selModel = Ext.create('Ext.selection.RowModel', { mode: me.mode }); }, 

    In the selModel component selModel you can select mode : "SINGLE"/"SIMPLE"/"MULTI" . In your case, the Cokras need "MULTI" . Read more here: http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.selection.Model