GWT Widgets Grid DetailsRow Issues

Hi,

I have several issues with the grid detailsRow functionality. Based on Arturs Grid example (https://github.com/Artur-/grid-gwt) i added a detailsRowGenerator adding a simple GWT Label

public class MyGrid extends Grid<Person> {
...
        setDetailsGenerator(new DetailsGenerator() {

            @Override
            public Widget getDetails(int rowIndex) {
                return new Label("details");
            }
        });

        addBodyClickHandler(new BodyClickHandler() {

            @Override
            public void onClick(GridClickEvent event) {
                event.getGrid().setDetailsVisible(event.getTargetCell().getRowIndex(), true);
            }
        });
}

I have several problems here:

  • GWT DevMode is not working. Whenever I click on a row I get an exception:
com.google.gwt.event.shared.UmbrellaException: Exception caught: (null) @com.vaadin.client.WidgetUtil::getBorderThickness(Lcom/google/gwt/dom/client/Element;[Ljava/lang/String;)([JavaScript object(134), Java object: [Ljava.lang.String;@451117380]
): null
  • Details row Generator is adding a blue line left to the current row. The line is not properly set. It is shown above the details row including another row above the selected one.

I appreciate any help :wink:

I am using GWT 2.7.0 and Vaadin GWT Widgets 7.5.2

Hi,

I quickly set up the same changes to grid-gwt but didn’t see any exceptions. The blue decorator line is definitely off and badly. I posted a ticket for that one at https://dev.vaadin.com/ticket/18586

//Teemu

Hi Teemu,

thanks for your response! The Exception only occurs with Classic Dev Mode (which might not be supported but is still being used in our company. It’s still working flawlessly except for this single problem).