We are upgrading the jquery versions to the latest for an ownapplication code.
On upgrading to jquery 3.4.1, the grid is not loading for the machine level application and is failing in infragistics.ui.grid.framework.js with the below error :
0x800a138f - JavaScript runtime error: Unable to get property '_injectGrid' of undefined or null reference
0x800a138f - JavaScript runtime error: Unable to get property 'locale' of undefined or null reference
Following this error, the grid on the page is not loading.
Code snippet- html code
We are upgrading the jquery versions to the latest for the PAMS application code to cover the VAT findings.
HTML CODE :
<div style="clear: both;"> @(Html.Infragistics().Grid<AgentEvent>().ID("eventsGrid") .Width("100%").Caption("Agent Events") .Columns(x => { x.For(y => y.TimeStamp).Width("15%").HeaderText("Date").Format("yyyy-MM-dd HH:mm").DataType("date"); x.For(y => y.EventId).Width("8%").HeaderText("Event ID"); x.For(y => y.Message).Width("auto").HeaderText("Message"); }) .Features(f => { f.Paging().PageSizeDropDownLocation("inpager").PageSize(10); f.Resizing(); }) .DataSourceUrl(Url.Action("AgentEventData", new { id = Model.Agent.Id })) .DataBind().Render())</div>
ERROR : Unable to get property '_injectGrid' of undefined or null reference in nfragistics.ui.grid.framework.js
Could you please help me out on this?
Hello Neel,
Can you please let me know which version of Ignite UI for jQuery are you currently using?
Keep in mind that older version of our product may not be compatible with latest versions of jQuery. More about our supported environments could be found here.
Please let me know if you need any further assistance with this matter.
I am not able to post my reply!
Please keep in mind that we are moderating our forums so that it might take some time until you posts passes the moderation and appears in the thread.
Thank you for the snippet provided. It seems that the following lines are referencing scripts that are part of Ignite UI product. I am looking to find out what is the exact version of the following files:
<script src="@Url.Content("~/Scripts/ig/modules/infragistics.util.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/ig/infragistics.loader.js")" type="text/javascript"></script>
Since they seem to be referenced from a folder within your application can you please open the Scripts folder, open one of the infragistics script files (.js), for example the infragistics.util.js, in a text editor. In the beginning of the file there is small piece of metadata looking similar to the following:
/*!@license * Infragistics.Web.ClientUI Util functions 19.2.23 * * Copyright (c) 2011-2019 Infragistics Inc. * * util functions that extend the jQuery namespace * if something is not already available in jQuery, please add it here. * * http://es.infragistics.com/ * * Depends on: * */
What I need are the numbers since they state what is the version of the scripts. In the provided sample meta data the version of the code is:
19.2.23
Having this information on my side is going to be very helpful for finding the root cause of the behavior.
Looking forward to hearing from you.
Hello,
The version is
Infragistics.Web.ClientUI Grid localization resources 12.2.20122.2086
*
According to our supported environments topic jQuery version 3.4.x are supported from version 18.1 and later. The latest version that you can use with version 12.2 (which is your current version) is jQuery 1.9.1.
Having this in mind my suggestion would be to upgrade to any of the latest versions of Ignite UI in order to take advantage not only of support for latest versions of different libraries but of plenty new features and functionalities as well. You can contact our sales department at sales@infragistics.com and they would be glad to assist you with teh upgrading process.
More about Infragistics supported environments could be found here.
Please let me know if you need any additional questions.
Hi,
Thank you for the response. Is there a way to use jquery.migrate nuget to do this upgrade of the infragistics libraries? Or is there any other way to do it?