Feb 17, 2014, 1:08 AM
[FIXED] [2.5] ContextMenu on grid does not clear x-grid-row-before-selected
Hi
I am using a grid with a context-menu. The context menu handler performs an action on the selected record marking it as dirty. When this happens the x-grid-row-before-selected is not being cleared....which leaves a single line in the grid.
To replicate the issue please make the following changes to your "Simple Array grid" example.
Listeners on GridPanel:
To view the issue right click an item and then click the "Something" button. Then right click the another row to show the context menu and select the "Something" button. The line should now be still showing....you can do this numerous times to leave a trail of lines.
It maybe more apparent switching the Theme to Neptune....
Kind Regards
Glen
I am using a grid with a context-menu. The context menu handler performs an action on the selected record marking it as dirty. When this happens the x-grid-row-before-selected is not being cleared....which leaves a single line in the grid.
To replicate the issue please make the following changes to your "Simple Array grid" example.
Listeners on GridPanel:
<Listeners>
<ItemContextMenu Fn="showMenu" />
</Listeners>
Change to window script: var menu;
var showMenu = function (view, record, item, index, event) {
var me = this;
if (!menu) {
me.menu = new Ext.menu.Menu();
me.menu.add(new Ext.menu.Item({
text: 'Something',
handler: function () {
record.set('company', 'sdff');
}
}));
}
event.preventDefault();
me.menu.showAt(event.getXY());
}
To view the issue right click an item and then click the "Something" button. Then right click the another row to show the context menu and select the "Something" button. The line should now be still showing....you can do this numerous times to leave a trail of lines.
It maybe more apparent switching the Theme to Neptune....
Kind Regards
Glen
Last edited by Daniil; Feb 20, 2014 at 7:44 AM.
Reason: [FIXED] [2.5]