can somebody give me an explanation for the purpose of the LoadUIView property? I experienced on some tablets, that the cell contents are truncated when this property is set to true and is correctly shown only when set to false. In addition, setting this property for a column to false causes SfDataGrid to ignore newlines in this column. Is there a way for interpreting linebreaks in a column even when LoadUIView is set to false?
PKPrasanth Karthikeyan Syncfusion Team December 11, 2015 10:27 AM UTC
Thank you for contacting Syncfusion Support.
We have analyzed your query. The purpose of LoadUIView property is to decide whether to load a TextView in GridColumn or to draw the contents in the canvas. SfDataGrid has the default value for LoadUIView property as false and it will draw the text values in the canvas of the GridCell. This is for the purpose of improving the scrolling performance and to optimize the memory of the program. Since we are drawing the content inside the canvas the text will be clipped if it exceeds the view by default and cannot be truncated.
While setting the LoadUIView to true, it will load a TextView inside the GridCells and instead of drawing the content in canvas, the text of the TextView is set and hence the contents are wrapped.
If your requirement is just to display text in the GridCell then you can let the LoadUIView to be false. If your requirement is to wrap the text of the column then you can achieve it by setting LoadUIView as true for that column alone.
Please let us know if this helps.
DEDenizDecember 14, 2015 09:58 AM UTC
thank you for the helpful explanation.
Best regards Deniz
PKPrasanth Karthikeyan Syncfusion Team December 15, 2015 01:14 PM UTC
Thank you for your update.
Please let us know if you require any further assistance on this.