Is it possible in igGrid Infragistics control inser carriage return / line feed inside the text of a cell?
For example given the next datasource:
var ds = [ { "Id": 1, "Name": "Adjustable \\r\\n Race", "ProductNumber": "AR-5381", "soldi" : 10.10 }, { "Id": 2, "Name": "Bearing Ball", "ProductNumber": "BA-8327", "soldi" : 20.10 }, { "Id": 3, "Name": "BB Ball Bearing", "ProductNumber": "BE-2349", "soldi" : 30.10 } ];
you can see between the words Adjustable and Race the chars "\r\n", but it doesn't work... I tried:
"\r", "\r\n", "\line", "", " "
in every test I see on screen the chars and not the new line... maybe there is a setting I don't know...
Glad to hear that, if there are other questions on this, please let us know.
Thanks for your replay, I found after a while that my problem was in the proxy service which I use to consume my server code, it html-encoded every special character, for example for "< b r / >" I was receiving "& l t ; b r / & g t ;", so I had only to replace it with "< b r / >" before binding... in any case thanks for your replay, your esample is very good deepening.
Hello Franco Pellegrino,
Thank you for posting into Infragistics community.
You can use formatter and replace "\r\n" with "<br />" and you will have new line into a cell.
Here's a sample