View Full Version : Contextmenu for multiple items
navvn
4 Sep 2011, 10:25 PM
I would like to have a context menu in a grid that allows to select multiple rows. After i click right mouse button grid automatically deselect all rows and select only one where cursor was clicked. Containerconextmenu doesn't work on rows, so it's not a solution.
skirtle
5 Sep 2011, 7:01 PM
This should stop the deselect:
beforeitemmousedown: function(view, record, item, index, ev) {
return ev.button !== 2;
}
itemcontextmenu will still fire.
skirtle
5 Sep 2011, 7:37 PM
Though I can't find any mention of it in the release notes, it seems that 4.0.6 introduced a new setting ignoreRightMouseSelection which does exactly what you describe.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.