This question is locked. New answers and comments are not allowed.
Hi,
I am using the Telerik RadGridview for Silverlight and cannot get the custom column footers to align correctly, I am using the following XAML :
<telerik:GridViewDataColumn.AggregateFunctions>
<telerikData:SumFunction SourceField="NumberOfOrders" />
</telerik:GridViewDataColumn.AggregateFunctions>
<telerik:GridViewDataColumn.Footer>
<telerik:AggregateResultsList ItemsSource="{Binding}" >
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Value, StringFormat=\{0:N0\}}"
HorizontalAlignment="Right"
FontWeight="Bold" />
</DataTemplate>
</ItemsControl.ItemTemplate>
</telerik:AggregateResultsList>
</telerik:GridViewDataColumn.Footer>
The 'HorizontalAlignment="Right" ' appears to be ignored when the grid is rendered, I have tried putting a StackPanel around the TextBlock and aligning it but that also does not work.
Is there any way I can right justify the text within the TextBlock?
Regards,
I am using the Telerik RadGridview for Silverlight and cannot get the custom column footers to align correctly, I am using the following XAML :
<telerik:GridViewDataColumn.AggregateFunctions>
<telerikData:SumFunction SourceField="NumberOfOrders" />
</telerik:GridViewDataColumn.AggregateFunctions>
<telerik:GridViewDataColumn.Footer>
<telerik:AggregateResultsList ItemsSource="{Binding}" >
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Value, StringFormat=\{0:N0\}}"
HorizontalAlignment="Right"
FontWeight="Bold" />
</DataTemplate>
</ItemsControl.ItemTemplate>
</telerik:AggregateResultsList>
</telerik:GridViewDataColumn.Footer>
The 'HorizontalAlignment="Right" ' appears to be ignored when the grid is rendered, I have tried putting a StackPanel around the TextBlock and aligning it but that also does not work.
Is there any way I can right justify the text within the TextBlock?
Regards,