I'm trying to implement inline editing of grid row with DropDownList by following https://www.telerik.com/kendo-react-ui/components/grid/editing/editing-custom/
In that example list of options is defined inside custom component DropDownCell:
localizedData = [{ text: 'yes', value: true },{ text: 'no', value: false },{ text: '(empty)', value: null }];
But in my case list of options should be received from backend by tableId+column combination.
The problem is that I can't figure out how to pass additional parameter (list of options) to props of DropDownCell.
In the example it is used in such way:
<
GridColumn
field
=
"Discontinued"
cell={DropDownCell} />
How can I pass my_column_specific_options to that cell?
I've tried the following approach
const cell = <
DropDownCell
options={my_column_specific_options}/>;
<
GridColumn
field
=
"Discontinued"
cell={cell} />
but it doesn't compile.
Please, help.