I had a page working fine earlier. JQ Update has broken this. Any idea about the error in the screenshot. I am using Hierarchical grid with template columns
Hi Rocky,
The problem comes from a fundamental rule about printing strings in HTML - the < and > symbols denote the beginning and the end of a tag so in most cases you never want to print them directly, simply because the browser will either remove those symbols from the DOM tree or it will treat everything between them as a tag.
The igGrid and the igHierarchicalGrid both print column data as raw HTML on purpose, allowing the developers to actually have HTML code in the values of their columns, which may in rare cases be undesired.
The solution lies in using the grid column's formatter function - in it you can substitute all occurrences of the < and > symbols with their escaped versions: < and >
Here's how the definition of your column can look like:
{ key: "Message", headerText: "Message", width: 150, dataType: "string", formatter: function(val) { return val.replace("<", "<").replace(">", ">"); } }
Hope this helps and good luck!Cheers,Bobby
i am using infragistics jquery grid 2013 version where i am facing problem in data populated in the grid. Please find the example of json object mentioned below
Object { Id="5225e9e351d8d61f78697188", Date="2013-09-03 15:53:39.5522", Message="messeage Service for '<Query>ajax'"}
Everything works fine but in the grid for message column it get populated and cell has a value as "messeage Service for 'ajax'" instead of showing the full message as "messeage Service for '<Query>ajax'".
"<Query>" is getting excluded from data rest is binding to the grid cell.
I already spend a day on this but not able to resolve it. Please help me its urgent.
Glad to hear that the new volume release (13,1) works for you :)If you run into any trouble when our controls are used in conjunction with a specific version of jQuery or jQuery UI, do not hesitate to let us know.All the best,Borislav
It seems the new 13.1 version of infragistics fixed this issue. I am now using JQuery 2.0.0 (via nuget) and JQueryui 1.10.2.
Reverting to Jquery 1.7.2 corrected my issue. Thanks for the fast response.