We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

LoadUIView property

Hi all,

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?

Thanks in advance

Deniz

3 Replies

PK Prasanth Karthikeyan Syncfusion Team December 11, 2015 10:27 AM UTC

Hi Deniz,

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.

Regards,
Prasanth



DE Deniz December 14, 2015 09:58 AM UTC

Hi Prasanth,

thank you for the helpful explanation.

Best regards
Deniz


PK Prasanth Karthikeyan Syncfusion Team December 15, 2015 01:14 PM UTC

Hi Deniz,

Thank you for your update.

Please let us know if you require any further assistance on this.

Regards,
Prasanth

Loader.
Up arrow icon