Using row templating with null Json property values. Hi, I’m trying to apply a template similar to the following to a Infragistics Jquery Grid. In my case, only one of the two columns as in the template has a value at any time. I receive the following error Unable to get value of the property 'Value3': object is null or undefined After some digging… It seems like the template placeholder are being replaced before executing the parent expression. Can you please advise me how to achieve the desired behavior? Note, I have no control over the data source.
I’ve attached a sample to demonstrate
Hi Christoffel,
I have asked our engineering staff to examine this further. To ensure that it will receive attention, this behavior has been logged in our internal tracking system with a Development ID of 118861. The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution.
I will leave this case open and update you with any new information after the review. You can also continue to send updates to this case at any time.
You can view the status of the development issue connected to this case by going to “Account > My Support Activity” clicking the case with number CAS-98084-T8T2L5 and selecting the "Development Issues" tab.
Please let me know if you need more information.
Whoops! Thanks for the mention, Christoff!(I'm still getting used to the new forum layout >___<)After a brief investigation on your (awesome) sample, we located the problem - it's in the _renderTemplatedCell method in the igGrid framework.This 1st line
var v, d = $.extend(true, [], val), t;
should look like this:
var v, d = $.extend(true, {}, val), t;
// when copying the row values, we need to extend and deep-copy an object, not an array.Our developers will fix a problem in a jiff and a fix will be available in the upcoming Service Release.PS: Alternatively, you can simply replace the line in the JavaScript file so you don't need to wait for the upcoming Service Release.Cheers,Borislav
Hi Borislav, thanks for the reply, a sample of the issue is attached to the original post.
Thanks in advance.
Christoffel
Hi Christoff,This seems like a very strange issue indeed.Can you please provide us with a simple (HTML if possible - MVC will also do) sample where the problem is reproducible?Having that, me and the rest of the community members will be able to look into the matter.Thanks in advance!Cheers,Borislav
Any updates on this issue yet?