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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

LoadUIView property

Thread ID:

Created:

Updated:

Platform:

Replies:

121405 Dec 10,2015 01:56 PM UTC Dec 15,2015 01:14 PM UTC Xamarin.Android 3
loading
Tags: SfDataGrid
Deniz
Asked On December 10, 2015 01:56 PM UTC

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

Prasanth Karthikeyan [Syncfusion]
Replied On 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


Deniz
Replied On December 14, 2015 09:58 AM UTC

Hi Prasanth,

thank you for the helpful explanation.

Best regards
Deniz

Prasanth Karthikeyan [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;