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.

Text Alignment change after scrollung

Thread ID:

Created:

Updated:

Platform:

Replies:

121669 Jan 14,2016 03:06 PM Jan 15,2016 06:08 AM Xamarin.Android 1
loading
Tags: SfDataGrid
Guillaume Levasseur
Asked On January 14, 2016 03:06 PM

Hello,

I use auto generation of columns and I have a problem with text alignment in cells.

At first, the text is center aligned, but after scrolling, it moves to the left. See screenshots in attachment. 

The first column is frozen.  I tried to use TextAlignment = GravityFlags.Center but it did not solve the issue.

Is there a way to prevent the text from aligning to the left?

Thank you,
Guillaume

Attachment: BadAligment_6cf5889d.7z

Harikrishnan N [Syncfusion]
Replied On January 15, 2016 06:08 AM

Hi Guillaume,

We are able to reproduce the issue in our side. However, this issue has already been fixed in our latest release which is available for download from the following link.

http://www.syncfusion.com/forums/121657/essential-studio-2015-volume-4-final-release-v13-4-0-53-is-available-for-download 

Otherwise, if you wish to get this issue fixed in your version itself, then you can set the LoadUIView for the grid columns as true by handling the SfDataGrid.AutoGeneratingColumn event like the following one.



sfGrid.AutoGeneratingColumn += sfGrid_AutoGeneratingColumn;

private void sfGrid_AutoGeneratingColumn(object sender, AutoGeneratingColumnArgs e)
{
    e.Column.LoadUIView = true;
}


Regards,
Harikrishnan


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.

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.

;