Announcement

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

    ListGrid.setSelectCellTextOnClick doesnt' work in edge

    Hi

    I use version v12.0p_2019-07-22

    ListGrid.setSelectCellTextOnClick works fine in all browser except in Microsoft Edge and IE11 (nothing is highlighted on click).

    Code:
        public static ListGridRecord createRecord(String name, String surname) {
            ListGridRecord record = new ListGridRecord();
            record.setAttribute("Name", name);
            record.setAttribute("Surname", surname);
            return record;
        }
    
        public static ListGridRecord[] getRecords() {
            return new ListGridRecord[] {
                    createRecord("Name1", "Surname1"),
                    createRecord("Name2", "Surname2"),
                    createRecord("Name3", "Surname3")
            };
        }
    
        @Override
        public void onModuleLoad() {
            SimplePanel sp = new SimplePanel();
            sp.setSize("100%", "100%");
            final ListGrid grid = new ListGrid();
    
            grid.setWidth(500);
            grid.setHeight(300);
            grid.setData(getRecords());
    
            ListGridField nameField = new ListGridField("Name", "Name", 50);
            ListGridField surnameField = new ListGridField("Surname", "Surname");
    
            grid.setFields(nameField, surnameField);
    
            grid.setSelectCellTextOnClick(true);
    
            sp.add(grid);
    
            RootPanel.get().add(sp);
        }
    Mike.
    Last edited by mike7778; 25 Jul 2019, 06:59. Reason: add version v12.0p_2019-07-22
Working...
X