Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ContextMenu

    When I right-click on grid header, I see the contextMenu. However, I try to add a new column using the contextMenu, it adds the column and the context Menu disappears. This happens only in editable grids. Have any of you experienced this issue?

    #2
    No, we do not see this problem. You can see everything works as expected and the context menu remains in place in this sample which shows an editable grid.

    Comment


      #3
      Hi Isomorphic,
      Thanks for the response. Could you please take the following simplified code and try to run? It works until I click one of the editable fields in the grid. What am I missing?

      public class TestScreen extends VLayout
      {
      public TestScreen()
      {
      ListGridField secId = new ListGridField("secId", "Sec Id");
      ListGridField secDesc = new ListGridField("secDesc", "Sec Desc");

      final ListGrid testGrid = new ListGrid();
      testGrid.setWidth(550);
      testGrid.setHeight(224);
      testGrid.setCanEdit(true);
      testGrid.setEditEvent(ListGridEditEvent.CLICK);
      testGrid.setFields(secId, secDesc);

      ListGridRecord listGridRecord = new ListGridRecord();
      listGridRecord.setAttribute("secId", "");
      listGridRecord.setAttribute("secDesc", "");

      testGrid.setData(listGridRecord);

      testGrid.draw();

      addMember(testGrid);
      }
      }

      Comment


        #4
        That code is equivalent to the sample we just pointed you to (note you posted in the wrong forum - SmartClient rather than SmartGWT).

        Please see the FAQ for the additional information you need to post: you've forgotten basics such as product and version, browser(s) where the problem occurs, etc. If you are not already using the latest patched build, upgrade and retest, and if the problem is still occurring, provide all the other required information.

        Comment


          #5
          I posted this issue to SmartGWT forum. Thanks!

          Comment

          Working...
          X