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?
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?
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
Source: https://ru.stackoverflow.com/questions/451263/
All Articles