Pull select option values from row
See original GitHub issueIs there a way to populate the options of a select based the values of a row?
<TableHeaderColumn
dataField={name}
editable={{
type: 'select',
options: { values: this.createOptions() }
}}>
{name}
</TableHeaderColumn>
In the example above, this.createOptions()
would need to have access to the row, as each row has a different set of options. So something like this.createOptions(row)
. I could then use that method to output the options stored in that row.
I can see how to edit the value of the field using the dataFormat
attr, but not how to edit the options associated with the cells in that column.
Appreciate the help.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Select and display value from each new "select option ...
Actually, when an option was selected from the dropdown, you were selecting all the <input> and then changing its value. What I did...
Read more >Select from Drop-Down and Pull Data from Different ...
... here: https://www.bluepecantraining.com/ select -from- drop -down-and- pull -data-from-different-worksheet-in-excel-vlookup- drop -down/In...
Read more >Add a list box or combo box - Microsoft Support
If you want Access to store the value you select, click the Control Source property box and select the field to which you...
Read more >How to get selected value in dropdown list using JavaScript
The value of the selected element can be found by using the value property on the selected element that defines the list. This...
Read more >Excel drop down list: how to create, edit, copy and remove
Head over to spreadsheet containing the items that appear in your drop-down box, and edit the list in the way you want. Select...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have a question about the select-options. when it has [{‘value’: ‘1’, ‘text’: ‘AAA’}, {‘value’: ‘2’, ‘text’: ‘BBB’}]
I tried to change column using cellEdit() (AAA to BBB) The data has updated correctly but the displayed value was ‘2’ not ‘BBB’. How can I handle this? I want to display by text value.
@5tormTrooper sorry for lately reply, and I think your requirement is very common and necessary, I’ll implement it ASAP, thanks 👍