I need to bind a combo box in infragistics grid on button click.I am not able to see the combo box on grid binding.I want to know why I am not able to do so.Please help.Thanks
The combo is initializing when we are on edit mode. That's why you can't see the combo. This is the normal behavior.
When you fire the button click event you can get your combo by this line of code:
$("#grid").igGridUpdating("editorForKey", "Your field name").data().igCombo.
And after that you can set your dataSource and bind the combo.
I want to clarify that this is not recommended approach to bind the combo on button click. Could you please describe your workflow with more details, and we will try to recommend you better way to achieve this solution.
If you have further questions, please feel free to contact us.
Thanks for the reply,but when I am using ("#grid").igGridUpdating("editorForKey", "Your field name").data().igCombo.I am getting the data as null on button click.Can u tell me the what is the editorForKey property?
I'm try to generate the combobox data source from taked it from columnsetting of the grid, like: comboRightsDataSource = grid.data("igGridUpdating").options.columnSettings.editorOptions.dataSource;But It's not working for me because I need to take from hierarchy grid and I have the combobox on the columns layout. Do you have any idea how to take it?