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

Problem with RightToLeft FlowDirection and column header names

1 Answer 26 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Falafel Support
Top achievements
Rank 1
Falafel Support asked on 09 Mar 2011, 06:16 PM

When I set the FlowDirection to 'RightToLeft' and define a column name which has a closing parenthesis as the last character, the parenthesis gets moved to the front of the text.

My Grid definition

<grid:RadGridView x:Name="GridOrderResults" Grid.Row="0" BorderThickness="0" Margin="1" 
                Style="{StaticResource RadGridViewDefaultStyle}" 
                HeaderRowStyle="{StaticResource GridViewHeaderRowStyle1}"
                AreRowDetailsFrozen="True"
                IsSynchronizedWithCurrentItem="True"
                RowStyle="{StaticResource GridViewRowStyle1}"
                AlternateRowStyle="{StaticResource AlternateRowStyle1}"
                AutoGenerateColumns="False"
                ColumnWidth="Auto"
                ItemsSource="{Binding Path=ExampleGridData,Mode=OneTime}"
                IsReadOnly="True"
                FlowDirection="RightToLeft">

My column definition
    <grid:GridViewDataColumn DataMemberBinding="{Binding Path=Amount}" UniqueName="Amount" IsReadOnly="True"HeaderCellStyle="{StaticResource GridViewHeaderCellStyle1}">
        <grid:GridViewDataColumn.Header>
            <TextBlock Style="{StaticResource GridTextBlockHeader}">Amount (USD)</TextBlock>
        </grid:GridViewDataColumn.Header>
....

and the result in the grid is in the attached file but the text is: (Amount (USD

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 10 Mar 2011, 09:36 AM
Hello,

Generally, this is the expected behavior defined by the Framework itself and does not depend on any settings of the RadGridView. You may test the same behavior with a TextBlock defined outside of the grid. Please take a look at this forum thread for further reference that contains a bit more detailed explanation on the topic.

 
All the best,
Maya
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
Falafel Support
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or