I would like to set a cell value when a button is clicked.
The code I used
$("#myGrid").igGridUpdating("setCellValue", 1, "contactName", "test");
But it does not work and complain the following.
"cannot call methods on igGridUpdating prior to initialization; attempted to call method 'setCellValue'"
Please help.
Hi ,
could you let me know which version of jQuery UI you are using? They've recently made some changes related to that, and AFAIK this error message is specific to 1.9.
Thanks,
Angel
Yes, you are right. I have been using the jquery-ui-1.9.0.js. There is no initialization error after I swap it with jqueryui/1.8.21. However, I still could not set the cell value using the following api. The value just did not get changed. Do you have any idea? Thanks for your help.
$("#grid1").igGridUpdating("setCellValue", 1, "ColKeyName", "xxxxx");
Thank you so much Martin. I change from <div> to <table> and the call to the API is working now. Just a little suggestion, I would like to propose to put this important requirement in this page (https://www.igniteui.com/help/iggrid-updating) because my guess is that this is the place most developers will review when they first study the igGridUpdating feature. And it is hard to find the it in the "Known Issues and Limitation".
Hi,
There is a known issue "Grid API calls do not work as expected with DIV elements solution".
In order for the API to work as expected you should instantiate the grid on TABLE element.
Hope this helps,
Martin Pavlov
Infragistics, Inc.