Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
IGGrid Destroy causes Sys.ParameterCountException
posted

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

Parents
No Data
Reply
  • 485
    Offline posted

    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.

Children