title: How to show contextMenu just on records of a listGrid?
body: <p>I'm using smartGwt 3.0, I have a <code>listGrid</code> with some records that i want to show <code>contextMenu</code> when a record is clicked. I'v written the codes for that and everything works fine.</p>
  
  <p>My problem is that when I right click on my listGrid (<strong>not on a record</strong>) the context menu appears that I dont want this to happen. then what should I do to solve this problem?</p>
  
  <pre><code>listGrid.addCellContextClickHandler(new CellContextClickHandler() {
              public void onCellContextClick(final CellContextClickEvent rightClickEvent) 
              {                                                   
                  Menu menu = new Menu();             
                  MenuItem hangupItem = new MenuItem("Hangup Call", "agent/hangup.png");              
                  hangupItem.addClickHandler(new ClickHandler() {             
                      public void onClick(MenuItemClickEvent event) 
                      {
                          SC.confirm("Are you sure ? ", new BooleanCallback() {
                              public void execute(Boolean value) {
                                  if (value != null &amp;&amp; value) {   
                                      labelAnswer.setContents("OK...");   
                                  } else {   
                                      labelAnswer.setContents("Cancel...");   
                                  }   
                              }
                          });
                      }
                  });
  
                  menu.addItem(hangupItem);
                  listGrid.setContextMenu(menu);              
              }
          });
  </code></pre>