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
Hi Alan,
I've tried moving the script references to the body, to no avail.
For a little more background, I have a master page. The master page has an ajax script manager in its body. Directly after the script manager is an asp content placeholder. There are numerous pages that use the master page as their master and reside in the content placeholder.
I looked at the file scriptresource.axd is loading, and it's microsoftajax.debug.js. I'd like to change the load order per your request but can't seem to accomplish this.
Sorry for the late response. Please advise.
Thank you.
Peter
Peter,
ScriptResource.axd is for JavaScript resources from an assembly and use by the ASP.NET AJAX framework. These would automatically be added to the page by the ScriptManager so you wouldn't see them in your code. I believe they are added to the head tag dynamically so they end up after any other scripts that you have included in the head tag.
If you were to look at the page as sent to the client in the network tools of the browser you should see additional scripts added after yours including the WebResource.axd scripts.
To see what is causing the conflict, you may need to identify what provides the file that causes the error:
String$trim (ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQrU26YvA_aRlieYuDfZ55ZlcoE0uK0YeZWqYFcmgzLrld_TqZOJIkL36yHh5oNo53h1YHV3Lz_TsjBy6SGewduJUbzz8MS2xtHhq6O1sl6SJhF6po4L2mw8xb6w-n-VthrZyJfLEsQrIpNluVsR-yPA1&t=ffffffffad4b7194:500)
If you look at that file in the developer tools it is likely that there is a comment at the top of the file that tells you what the file is for that would give you a clue as to what is causing the conflict.
For testing loading jQuery after the ScriptResource.axd scripts, you could move all of your script references from the head to the body of your page and test to see if that indeed changes the behavior.
Let us know if you have any questions.
Hello Vasya,
I am not loading a ScriptResources.axd file anywhere that I'm aware of. Here are the scripts I load:
<script type="text/javascript" src="Scripts/DateFormat.js"></script> <script type="text/javascript" src="Scripts/jQuery/jquery.min.js"></script> <script type="text/javascript" src="Scripts/jquery-ui/jquery-ui.min.js"></script> <script type="text/javascript" src="Scripts/Infragistics/infragistics.core.js"></script> <script type="text/javascript" src="Scripts/Infragistics/infragistics.lob.js"></script> <script type="text/javascript" src="scripts/bootstrap/bootstrap.min.js"></script> <script type="text/javascript" src="scripts/clcConstants.js"></script> <script type="text/javascript" src="scripts/clcUtils.js"></script>
I'm not sure what I need to do to implement your suggestion.
Thanks,
Hello Peter,
Thank you for your patience while I was looking into this matter for you.
After looking further in the stack trace, I believe the reason for the exception is the incorrect order of the scripts loaded. What I noticed is that the exception is in the ScriptResource.axd file when trying to call a trim() function. When calling destroy method of igGrid the _removeAttributes function is called and inside this function the jQuery trim() method is used. My assumption is that the ScriptResource file`s trim method has overridden the jQuery`s trim method, most probably with different parameters, and this is causing the exception.My suggestion for your scenario is to ensure that the ScripResources file is loaded before jQuery scripts. This will prevent the overriding of the trim functions.Please test this approach on your side and let me know if you need any further assistance with this matter.
Thank you for the provided information, I am currently in the process of investigating this matter on my side and I will get back to you with more details soon.
Please do not hesitate to contact me with any updates or additional questions regarding this scenario in the meantime.