Antd EditableProTable valueNum is column based how to set different value in each row

Viewed 51

I am using Antd EditableProTable where i am trying to create select box and i am setting options value in valueEnum but for second row for same column my valueEnum is different but how to set that? In normal antd table there is concept of datasource but here that takes just the data which have to be shown on first time render but not the select options you have to define it in column levels only but then the problem is it render the same in each row.

How to provide different select box data for each row.Any help would be great.

enter image description here

1 Answers

enter image description here

I have not tried, but as API in antd docs, the render can do this work. Let's try to config the select options of the <Select> according to the record of that row. For example, you pass two additional cols (but hide them by hideInTable prop) that have two options data, then when render the <Select> you get the data from them.

Good luck!

Related