• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[ANSWERED] Grid Menu without Right Click

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [ANSWERED] Grid Menu without Right Click

    See picture attached with post. How did you acheive the triple dot click and bring up a context menu. I really like this feature because some of my users use a stylus and sometimes the right click doesn't work well. Is this just an action column with that picture? Thanks...any help is appreciated.

    tripledot.JPG

  • #2
    Ryan,

    You can just have a column with a renderer that returns the image then listen for the cellclick in your controller on the grid. Example renderer

    Code:
                    renderer  : function(v,cell){
                        return '<div class="vvicon-in-cell vvicon-menu-2"></div>';
                    }
    Then show your menu at the event objects xy coordinates. The event object is a parameter of the cellclick event.

    Code:
                xy = e.getXY();
                xy[1] += 10;
                if (menu){
                    menu.showAt(xy);
                }

    Comment

    Working...
    X