Dropdown in a row

How can I add dropdown in a row.

Handsontable currently allows celltype dropdown for a column. I need to add a dropdown in all cells of a row.
Is it possible to do this? if Yes please provide some example.

1 Like

Hi @hitesh.gupta

you can use cells method to set dropdown cell type to cells in a particular row. Here is an example http://jsfiddle.net/handsoncode/egL7qa2p/

Hi
is it possible to have different options in dropdowns in different cells in a row.

For example:
Row 1 (r1) is a dropdown with 4 options i.e. A, B, C, D

In row 2 dropdown can have diff. options depending upon option selected in corresponding cell in row 1
such as
if in row 1 col 1 (r1c1) on selecting A option, row 2 col 1 (r2c1) should have options P,Q,R
if in row 1 col 2 (r1c2) on selecting B option, row 2 col 2 (r2c2) should have options W,X,Y,Z
so on…

Please provide an example. Thanks

1 Like

sure @hitesh.gupta

here you are http://jsfiddle.net/handsoncode/b5et45do/

first cell (0, 0) has options presented by this array ['aa', 'bb', 'cc', 'dd'], second cell ['1', '2', '3'] and the rest in the row has ['']