The task at hand : Background : I have a grid with several columns and one of them is a combo. I use rowEditTemplate. This is SPA app - no refreshes. When I Create new grid item and select from this combo I see the list of the items as expected. But after successful creation of a new grid item I want to change the combo items : For example : I create an item choosing the first element of the combo and when I start creating a grid item again I want to see an indicator in the combo list item like "ComboListItem1 (is used already)".
My initial thought was to add my custom success handler and from there to get the datasource of the combo and call dataBind which will reGet the combo data with the new list. So far I was able to call dataBind() only on the grid itself but not in the combo datasource. How can I get to the combo datasource?
Hello,
Thank you for contacting Infragistics.
I have done some looking into this matter and have the following information. You can achieve this by getting the editor and then using the editor to get the datasource. To get the editor you can use editorForKey:
http://help.infragistics.com/jQuery/2014.1/ui.iggridupdating#methods:editorForKey
You can use getDataSource to get the datasource of the combo:
http://help.infragistics.com/jQuery/2014.1/ui.igcombo#methods:getDataSource
http://help.infragistics.com/jQuery/2014.1/ui.igcombo#options:dataSource
http://help.infragistics.com/jQuery/2014.1/ui.igcombo#methods:dataBind
Please let me know if you have any further questions concerning this matter.
I am following up to see if the information provided has resolved this matter.
Please let me know if I may be of further assistance with this matter.