Hi, i have a grid that contains users in a company. In that company there are some roles. I want to add this grid a column that contains that roles. But i could not add ComboBox to my raws. Any suggestion?
Hello;
I do not see addComponentColumn as member of the grid. I tried grid.addComponentColumn but there is no such member (addComponentColumn) for the grid. What is the needed package to be imported to be able to use addComponentColumn?
And I am trying to use ComponnentRendererversion 1.0.3 with vaadin 7.6, but whenever I use it, then the grid appears empty.
Below is my code:
Object itemId = container.addItem();
container.getContainerProperty(itemId,"ID").setValue("1");
container.getContainerProperty(itemId,"Dependent MPI").setValue("200.300");
container.getContainerProperty(itemId,"MPI Type").setValue("Antenna");
container.getContainerProperty(itemId,"Approval").setValue(ApproveReject);
if (this.Discrepancy == true) {
this.getColumn("Approval").setRenderer(new ComponentRenderer());
} Object itemId = container.addItem();
container.getContainerProperty(itemId,"ID").setValue("1");
container.getContainerProperty(itemId,"Dependent MPI").setValue("200.300");
container.getContainerProperty(itemId,"MPI Type").setValue("Antenna");
container.getContainerProperty(itemId,"Approval").setValue(ApproveReject);
if (this.Discrepancy == true) {
this.getColumn("Approval").setRenderer(new ComponentRenderer());
}
What could be the reason?
And what is the solution to add Combobox component for grid?
Regards
Bilal
myGrid.addComponentColumn( r → { …