Hello.
I'm using a custom dropdown list using <Input ...>.
So a drop down list exists for every row in the grid.
When I click on a row here I want to get all the information of that row.
But there is something wrong with the value returned by the dropdown list.
1. Data that has already been saved in DB and not modified is imported correctly.
2. If you use incell to change the dropdown, "textField" gets the correct value, but "valueField" still points to the previous value.
For example:
textfield: name
valuefield: id
{id: 1, name: 'apple'},
{id: 2, name: 'orange'}
If the data stored in DB is {id: 1, name: apple}, "1, apple" is imported when row is clicked.
After this I change the dropdown to orange and don't save it yet.
"1, orange"
Get the data called
That is, the valuefield has not been updated, only the textfield has been updated.
Can you imagine what went wrong?
Or do you need code?
I'm using a custom dropdown list using <Input ...>.
So a drop down list exists for every row in the grid.
When I click on a row here I want to get all the information of that row.
But there is something wrong with the value returned by the dropdown list.
1. Data that has already been saved in DB and not modified is imported correctly.
2. If you use incell to change the dropdown, "textField" gets the correct value, but "valueField" still points to the previous value.
For example:
textfield: name
valuefield: id
{id: 1, name: 'apple'},
{id: 2, name: 'orange'}
If the data stored in DB is {id: 1, name: apple}, "1, apple" is imported when row is clicked.
After this I change the dropdown to orange and don't save it yet.
"1, orange"
Get the data called
That is, the valuefield has not been updated, only the textfield has been updated.
Can you imagine what went wrong?
Or do you need code?