Hi there,
I'm using setCellValue of igGridUpdating to update a specific column cell value (assume on the same row) after combo value selection from another column, it throws "cannot call methods on igGridUpdating prior to initialization; attempted to call method 'setCellValue'" exception.
Any solution?
Thanks,
Michael
Hi Michael,
Changing the grid placeholder to TABLE element will allow you to call igGridUpdating API methods like this:
$("#gridProducts").igGridUpdating("setCellValue", 2, "Description", "Sample");
But that will not solve your problem, because setCellValue is not meant to be used while the igGridUpdating is in edit mode.
As workaround I would suggest that you manually change the column cell value by manipulating the grid DOM and then use the igDataSource API to reflect that change in the grid data source. Use $(".selector").data("igGrid").dataSource; to get a reference to the grid data source and call $.ig.DataSource.setCellValue API to update the data source.
Hope this helps,Martin PavlovInfragistics, Inc.
Hi Martin,
Thanks for suggestion. Changing placeholder to TABLE doesn't solve the problem.
Our business application requires "cell" editMode instead of "row". So do you mean there is no workaround or fixes that allows to update another cell value after picking a value from combo dropdown?
Hello Michael,
This error is caused by a known issue. You should change the grid placeholder to a TABLE element in order to use the grid updating feature API. However that's not the only problem. Calling setCellValue on a row which is currently in edit mode rises another error (which I guess is not supported scenario). To overcome the second problem, my suggestion is to change the editMode to 'row' and manipulate the other cell editor like demonstrated in the following sample: Editing Combo Editor.
Hope this helps,
Martin Pavlov
Infragistics, Inc.