I'm using version 2017.2, IgGrid with the Updating feature, with editMode set to 'cell'. When the editCellEnded event fires, I make an Ajax call to the server and save the record. Everything works fine.
Then when the user wants to go back to the prior page, I call the Destroy method of the grid. It gives the following error:
ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQrU26YvA_aRlieYuDfZ55ZlcoE0uK0YeZWqYFcmgzLrld_TqZOJIkL36yHh5oNo53h1YHV3Lz_TsjBy6SGewduJUbzz8MS2xtHhq6O1sl6SJhF6po4L2mw8xb6w-n-VthrZyJfLEsQrIpNluVsR-yPA1&t=ffffffffad4b7194:237 Uncaught Error: Sys.ParameterCountException: Parameter count mismatch. at Function.Error$create [as create] (ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQrU26YvA_aRlieYuDfZ55ZlcoE0uK0YeZWqYFcmgzLrld_TqZOJIkL36yHh5oNo53h1YHV3Lz_TsjBy6SGewduJUbzz8MS2xtHhq6O1sl6SJhF6po4L2mw8xb6w-n-VthrZyJfLEsQrIpNluVsR-yPA1&t=ffffffffad4b7194:237) at Function.Error$parameterCount [as parameterCount] (ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQrU26YvA_aRlieYuDfZ55ZlcoE0uK0YeZWqYFcmgzLrld_TqZOJIkL36yHh5oNo53h1YHV3Lz_TsjBy6SGewduJUbzz8MS2xtHhq6O1sl6SJhF6po4L2mw8xb6w-n-VthrZyJfLEsQrIpNluVsR-yPA1&t=ffffffffad4b7194:413) at String$trim (ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQrU26YvA_aRlieYuDfZ55ZlcoE0uK0YeZWqYFcmgzLrld_TqZOJIkL36yHh5oNo53h1YHV3Lz_TsjBy6SGewduJUbzz8MS2xtHhq6O1sl6SJhF6po4L2mw8xb6w-n-VthrZyJfLEsQrIpNluVsR-yPA1&t=ffffffffad4b7194:500) at t.(anonymous function).(anonymous function)._removeAttributes (localhost/.../infragistics.lob.js:104:8201) at t.(anonymous function).(anonymous function)._removeAttributes (localhost/.../jquery-ui.min.js:6:4499) at t.(anonymous function).(anonymous function)._restoreDOMStructure (localhost/.../infragistics.lob.js:104:7097) at t.(anonymous function).(anonymous function)._restoreDOMStructure (localhost/.../jquery-ui.min.js:6:4499) at t.(anonymous function).(anonymous function).destroy (localhost/.../infragistics.lob.js:104:13393) at t.(anonymous function).(anonymous function).destroy (localhost/.../jquery-ui.min.js:6:4499) at Class.destroy (infragistics.lob.js:157)
Please help!!
Pete
Hello Peter,
Thank you for posting in our forum.
This is a generic error that get thrown by the Microsoft Ajax Library when an invalid number of arguments gets passes to a method (or a function). The most likely reason is that one of the values you are submitting is “null” or “undefined”, which would cause the JavaScript proxy to drop the parameter completely.
Providing your code that sends the AJAX request from the client side to the server, as well as your grid initialization configuration would be much appreciated. It would allow me to get an idea of the way you pass the AJAX request parameters and give you a more precise answer.
Also, try debugging on you side by opening the "Network" tab in the browser's Dev Tools and inspect the request being sent to the server - this would allow you to check if there is an "undefined" or "null" value somewhere.
Feel free to contact me if you have any additional questions regarding this matter.
Hi Vasil,
I've looked at the requests and there's nothing that's null. I've commented out the Ajax call to the server after editCellEvent fires, and it still happens.
If I have a grid with the updating feature turned on, but don't do any edits to the records, I can call the destroy() method with no problems. However, if I manually click on one of the cells and change the value, the destroy() method causes the exception.
I understand your explanation of the Microsoft Ajax Library throwing an error, but I don't think it's from anything I've done. It seems the problem is coming from somewhere in your engine.
Thanks,