EasyUI Forum
March 29, 2024, 05:26:33 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datagrid context menu issue  (Read 9656 times)
sectioni
Jr. Member
**
Posts: 67


View Profile
« on: April 03, 2016, 09:17:43 AM »

If i right-click and remove all columns, i am unable to right-click again to get the context menu.

You can try this with your own demo.
http://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem=

Select the "Context Menu on DataGrid" demo.
Remove all columns. try to get them back.


Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #1 on: April 05, 2016, 12:50:29 AM »

Please try to download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.5-patch.zip.
Logged
sectioni
Jr. Member
**
Posts: 67


View Profile
« Reply #2 on: April 06, 2016, 05:52:33 AM »

This solves the problem but creates a new one.

When there are columns, and i right click, the 'onHeaderContextMenu' event is called twice, the menu-shadow element is created twice, and when the context menu disappears i'm left with one visible menu-shadow element.

The problem occurs because there is also a 'contextMenu' event on each column. and your patch adds another one on the entire header.
« Last Edit: April 06, 2016, 05:57:16 AM by sectioni » Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #3 on: April 06, 2016, 09:01:35 AM »

This issue has been fixed. Please download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.5-patch.zip.
Logged
sectioni
Jr. Member
**
Posts: 67


View Profile
« Reply #4 on: April 07, 2016, 01:51:34 AM »

Works
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!