Group Header not scrolling or wrapping

1 posts, 0 answers
  1. Rick Hodder
    Rick Hodder avatar
    17 posts
    Member since:
    Jul 2004

    Posted 26 Feb 2013 Link to this post

    I have a RadGridView with groups, and in the header of group I am setting up a data template with a TextBlock bound to a property that contains large strings (less than 500 char). I have set the TextBlock to wrap its text, but no matter what I try, the text scrolls off to the right, but if I scroll the grid to the right, the group header doesnt scroll with it, so I cant read the info.

    The only thing I've managed to do, is set the width of the TextBlock to a fixed width, and then it wraps, but because its a fixed width, it doesnt do well when I change the size of the browser window.

    Any ideas?

    Here is the XAML:

        <telerik:RadGridView x:Name="grdNotams" Grid.Row="1" AutoGenerateColumns="False" RowIndicatorVisibility="Collapsed" ShowGroupPanel="False" GroupRowIsExpandedChanging="grdNotam_GroupRowIsExpandedChanging">
          <telerik:GridViewDataColumn Header="Status" UniqueName="colStatus" DataMemberBinding="{Binding Model.Status}" HeaderTextAlignment="Center" TextAlignment="Center" IsFilterable="False" IsSortable="False"/>
          <telerik:GridViewDataColumn Header="Trip #" UniqueName="colTripNumber" DataMemberBinding="{Binding Model.TripNumber}" HeaderTextAlignment="Center" TextAlignment="Center" IsFilterable="False" IsSortable="False"/>
           <TextBlock Text={Binding BigText} TextWrapping="Wrap" />


    I have also tried things like this:

           <ColumnDefinitions Width=20></ColumnDefinitions>
          <TextBlock Text={Binding BigText} TextWrapping="Wrap" />
          <Ellipse Fill="Red" Width="10" Height="10" Margin="5" Grid.Column="1"/>


Back to Top