PDA

View Full Version : 6.2.1 modern: selection column not binding to the grid with multiselect plugin



fabricio.object
21 Apr 2017, 12:41 PM
Hello!

Trying this fiddle: Modern: Multiselect grid plugin - broken (https://fiddle.sencha.com/#view/editor&fiddle/1udh)

It is not binding the plugin's SelectionColumn to the grid while it is instantiated. So I click 'select', it does not show the column and, clicking 'delete' just shows another 'cancel' button right to the 'delete' button, indefinitely.

But if I just "extend" the grid with the settings I want, then it surprisingly works fine. It looks like a "race condition".. well, just a "race" which results are defined at "definition time". :)

This is a sample with the extension approach: Modern: MultiSelect grid plugin - working (https://fiddle.sencha.com/#view/editor&fiddle/1udk).

I'm using google chrome 57 with developer tools on and under device emulation mode for Galaxy S5.

update: Calling grid's .addPlugin('multiselection') after it is created works fine, so it really looks like just a problem when the plug in is bound to the grid at definition-time (specified in Ext.create() object).