Posted 13 December 2024, 5:27 am EST
Hi,
Yes, you can set the editor’s itemsSource based on a cell’s property/value, you’ll have to handle the ‘beginningEdit’ event of the FlexGrid to update the editor’s itemsSource, and you’ll have to use a custom editor, like ComboBox for that column. You can fetch the data from the server and update it in the editor’s items source.
Please refer to the following sample demonstrating the same - https://stackblitz.com/edit/react-u2nhqdg2?file=index.js
In the above sample, we have simulated the server request using the setTimeout method, and a loader will appear in the dropdown list until data is fetched. The data in the’ City’ column will be fetched according to the value set in the ‘Country’ column.
Hopefully, it will complete all your requirements, in case, you face any issues, please let us know.
Regards