As the below code when the user click on the row and then the below column change to the drop down and bind the prepared data to listItems.
So how can I get the primary key of the selected row and bind a dynamic data to the listitems? because I need to get the below drop down data based on the selected row Id, I don't need the static data.
{ columnKey: 'ShippingMethod', editorType: 'string', editorOptions: { button: 'dropdown', readOnly: false, listItems: shippings } }
Thanks inadvance
Hello,
Thank you for contacting us!
I have create you a sample in order to show you this approach, to set combo DataSource depending of the row ID. You will need to set editorType of your column setting to be combo, and to handle editCellStarted event. When start edit a cell the combo will get different DataSource depending of the row ID (you can set other dependency if you like). In the sample I am getting the row primary key with ui.rowID. If you specify primaryKey to the igGrid it will be equal to the ui.rowID value.
Code snippet:
If you need further information do not hesitate to contact me!
Thanks! it's work. :)
I'm glad that I've managed to help you.
Thank you for using our products!