Custom component in Grid

I would like to have a customized button in one of my columns of the grid and a layout with two labels in another column. I guess this has to be done with some customized renderer? Is it even possible and if so, how is it done?


Customized button might require overriding client-side of ButtonRenderer depending on what kind of customizations you mean. Layout with two labels could perhaps be approximated by using HtmlRenderer, again depends a bit on just what kind of layout and label qualities you need. For both you set the renderer on a String property, and set the button caption or the required html as the value. RowStyleGenerator or CellStyleGenerator might also help for some customization needs. Note that at least with the current iteration of Grid the height of the cells won’t grow automatically if your renderer generates larger contents than can fit.