This is a migrated thread and some comments may be shown as answers.

TextAlignment doesn't work with GridViewExpressionColumn

1 Answer 54 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Heiko Görig
Top achievements
Rank 1
Heiko Görig asked on 17 Jan 2011, 01:22 PM
Hello,

Found another bug:
The TextAlignment-Property of GridViewExpressionColumns doesn't get respected. Instead the cells are always left aligned.

Regards,

Heiko

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 17 Jan 2011, 05:02 PM
Hi Heiko Görig,

 
Thank you for your feedback. We confirm that this is a bug in RadGridView's GridViewExpressionColumn and I have logged this case in our PITS System, you can track its progress following this link.
As a kind of workaround I would suggest you to define your CellTemplate in this column and these properties will work as expected, please refer to the xaml below:

<telerik:GridViewExpressionColumn Header="Total value in stock"   UniqueName="TotalValue" >
        <telerik:GridViewExpressionColumn.CellTemplate>
             <DataTemplate>
                 <TextBlock FontSize="16" Text="{Binding}" FontWeight="Bold" TextAlignment="Center"/>
            </DataTemplate>
         </telerik:GridViewExpressionColumn.CellTemplate>
</telerik:GridViewExpressionColumn>

I have updated your Telerik points accordingly.


Please excuse us for any inconvenience caused.

Greetings,
Vanya Pavlova
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Heiko Görig
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or