In my igGrid ,The data in one of the columns have multiple spaces between characters such as "aa bb", but when it is bounded,the extra spaces are removed and shown as "aa bb". I wanted to bind my data as is however it is there in the db. Can some one help me in fixing this issue.
Thanks & Regards
How did you insert the spaces in your datasource? Did you just tap on spacebar or you used the reserved HTML non-breaking space like " "? The second one works fine on my side and displays the record with spaces. Attached is a sample for your reference.
If you have any questions, please let me know.
Thanks for your quick replay ,i did tap on space bar and it is saved in the database with the spaces, i tried to bind the same data which is there in the database.
Mine is not the editable grid.i am just trying to bind the data as is ,however it is there in the database.
Ok, ignore the editable grid. This has nothing to do with the datasource and spaces in records. Please note that including spaces through the spacebar won't render any spaces in the grid records, since spacebar spaces are ignored in HTML. Therefore you should use html reserved entity character for non-breaking space: https://www.w3schools.com/html/html_entities.asp
For the similar situation ,IG ultra web grid ,there is some thing called a property "HTMLEncodeContent" at the column level,if we set this to true ,it will work. Please refer the below link.
Can you please tell me ,Is there anything of such column level setting for igGrid?