Closed vaadin-bot closed 8 years ago
Originally by vinodvaadin
Attachment added: Grid_Column_Expand_Issue.jpg
(82.0 KiB)
https://trac-attachments.vaadin.com/trac/20240/Grid_Column_Expand_Issue.jpg
Screen shot of disabled Grid wherein Columns have not expanded correctly
Originally by @Artur-
The patch actually only partially fixes the issue. The column widths are correct but the grid does not work after being enabled
Originally by vinodvaadin
Dear Vaadin Team,
If Vaadin grid is disabled, the columns of the grid do not expand correctly. They expand only partly, leaving the other space blank.
Below is my complete code where I am creating a simple vaadin grid and setting grid.setEnabled(false) [line #56]
Below is the code. I have also attached a screen shot of disabled grid where in the columns have not expanded correctly leaving the space empty.
import java.util.ArrayList; import java.util.Collection;
import javax.servlet.annotation.WebServlet;
import com.vaadin.annotations.VaadinServletConfiguration; import com.vaadin.data.util.BeanItemContainer; import com.vaadin.server.VaadinRequest; import com.vaadin.server.VaadinServlet; import com.vaadin.ui.AbstractOrderedLayout; import com.vaadin.ui.Button; import com.vaadin.ui.Grid; import com.vaadin.ui.UI; import com.vaadin.ui.VerticalLayout;
public class GridTest extends UI { @WebServlet(value # {"/grid/", "/VAADIN/" }, asyncSupportedtrue) @VaadinServletConfiguration(productionMode # true, uiGridTest.class) public static class Servlet extends VaadinServlet { }
}
Imported from https://dev.vaadin.com/ issue #20240