Page 1 of 1
					
				Multiple row selection and context menue
				Posted: Thu Sep 03, 2015 4:02 am
				by Steve Bone
				Hi,
While using the context menu widget in combination with the multiple row selection in a grid, i came across a problem.
When I selected multiple rows in the grid with a left click, they are correctly selected and deselected as desired.
If I now perform a right click on any row in the subfile, the context menu is correctly opened.
The row I right-clicked however is now selected too, or when it was already selected, becomes deselected.
Is there a way to disable right click for the row selection in a grid?
			 
			
					
				Re: Multiple row selection and context menue
				Posted: Thu Sep 03, 2015 11:18 am
				by Scott Klement
				Have you tried preventEvent()?  Or, is it all handled by PUI?    
It's hard to fully understand what's happening without seeing it for myself.  Can you post a JSON dump?  To get this, go to the screen with the problem and press Ctrl-F9.  It should ask you to download a file -- please provide that file here.
Thanks
			 
			
					
				Re: Multiple row selection and context menue
				Posted: Thu Sep 03, 2015 5:25 pm
				by ndeppe
				I have this same issue and I haven't been able to find a solution.  I tried preventEvent(), but that did not work.
To recreate it, create a grid, and allow for multiple selection.  Create a menu object and set it to invisible.  Then, in the grid context menu property, set it to the element name of the menu object.  When you right-click on the rows, the context menu is displayed, and the row is selected/deselected.  
Basically, in this situation, we would only want a row to be selected/deselected with a left-click, and the context menu to be displayed with a right-click.
I created a test display file and attached the JSON file to this post to give an example.
			 
			
					
				Re: Multiple row selection and context menue
				Posted: Fri Sep 04, 2015 4:47 pm
				by Scott Klement
				Okay, I see what you're saying.   Thanks for the JSON file -- this helps a lot!
I was a bit confused before.  (I was thinking that preventEvent would block the row selection -- but it does not, it blocks the context menu -- so does the opposite of what you guys need!)   Sorry for the confusion, there.
To block the row selection when right-clicking and there's a context menu will require a change to the product.  I will create a feature request to that end and e-mail you the ticket number.