Opened 8 years ago

Closed 6 years ago

#12714 closed defect (patchwelcome)

Bug when dropdownbutton menu is added in the EnhancedGrid

Reported by: paweluz Owned by: Evan
Priority: high Milestone: future
Component: DojoX Grid Version: 1.6.0
Keywords: grid, dropdownbutton, menu, EnhancedGrid Cc:
Blocked By: Blocking:

Description

Problem is that when you try to put a dropdownbutton menu in the grid it can be opened just for 1/10 of second. Somehow the row selection mode (clicking in the row itself) is in conflict with clicking on dropdown button... I have tried with the simplest dropdown button as it can be, and also with some more difficult stuff. It does not matter. I also have tried many configuration in the grid (allow drop, not allow, mulitselection, single selection etc...) and still nothing. I think that this one is a bug. Here is link to the nabble forum when I started a topic about that:

http://dojo-toolkit.33424.n3.nabble.com/DropDownButton-in-the-grid-problem-with-opening-menu-td2755801.html#a2763001

Change History (8)

comment:1 Changed 8 years ago by evan

Milestone: tbd1.7
Priority: normalhigh

comment:2 Changed 8 years ago by evan

Priority: highnormal

comment:3 Changed 8 years ago by evan

Owner: changed from evan to Evan

comment:4 Changed 7 years ago by helloworld

I also reproduced this bug. In fact, its behavior is not stable, sometimes work, sometims not.

comment:5 Changed 7 years ago by Evan

Milestone: 1.8future

Will need to revisit this post 1.8

comment:6 Changed 7 years ago by bfredrikb

until this get fixed, this is a simple hack I came up with...

var button = new DropDownButton({
             label: "Rapporter",
             dropDown: menu,
             onClick:function(evt){
               if(this.get('my_opened')){
                 this.set('my_opened',false);
                 this.closeDropDown();
               }else{
                 this.set('my_opened',true);
               }
             },
             onBlur:function(evt){
               if(this.get('my_opened')==true){
                 this.openDropDown();
               }
             }
           });

comment:7 Changed 6 years ago by bill

DojoX Grid and EnhancedGrid are deprecated in favor of dgrid and gridx.

You should upgrade your code to use one of those two grids.

We will consider patches to the old DojoX Grid code though.

comment:8 Changed 6 years ago by bill

Resolution: patchwelcome
Status: newclosed
Note: See TracTickets for help on using tickets.