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?
Multiple row selection and context menue
-
- New User
- Posts: 11
- Joined: Wed Jul 16, 2014 6:19 am
- First Name: Steve
- Last Name: Bone
- Company Name: Kuehne + Nagel
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Multiple row selection and context menue
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
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
-
- New User
- Posts: 14
- Joined: Fri Dec 05, 2014 1:17 pm
- First Name: Nick
- Last Name: Deppe
- Company Name: Victaulic
- Phone: 6109233257
- Address 1: 4901 Kesslersville Road
- City: Easton
- State / Province: Pennsylvania
- Zip / Postal Code: 18040
- Country: United States
- Contact:
Re: Multiple row selection and context menue
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.
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.
- Attachments
-
- json.txt
- (3.26 KiB) Downloaded 57 times
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Multiple row selection and context menue
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest