putting list in one element of grid

Hey guys
I am creating a simple phone book in vaadin . suppose I have a grid with columns(firs name , last name , status , phone number , email)
my questions is :
how can I set a button for element of phone number in the grid to add another phone number/s ?
and
how can I set a comboBox for phone number type (FRIEND , PERSONAL , …) in it ?
actually I want phoneNumber would be a list in one row .

many thanks .

Which Vaadin version are you using? Can you share a bit of code showing how you’re initializing your Grid?

Olli Tietäväinen:
Which Vaadin version are you using? Can you share a bit of code showing how you’re initializing your Grid?

hey olli
thank you
you can clone the project on
https://github.com/hamid842/PhoneBookVaadin
and run it please .

Looks like you are using the bean-scanning method of initializing the Grid; that is, [you pass a class]
(https://github.com/hamid842/PhoneBookVaadin/blob/development/src/main/java/com/vaadin/example/vaadin/form/MainView.java#L22) as the Grid’s constructor parameter. This will automatically create a column for each property found from Customer. You can also add columns manually; see examples here: https://vaadin.com/components/vaadin-grid/java-examples/configuring-columns and here: https://vaadin.com/components/vaadin-grid/java-examples/using-components and some more documentation here: https://vaadin.com/docs/v14/flow/components/tutorial-flow-grid.html

Thank you for spending your time . But please clone my code and run it . Press “New” button on top . Email and Phone number have another text field that is not in the grid .
I wanna set it and also want to save more phone numbers and emails in the grid .

Sorry, but I don’t understand. Can you paste the relevant code here?