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

VS2013 Theme Merged Cell Alignment Possible Bug

1 Answer 37 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Shaun
Top achievements
Rank 1
Shaun asked on 29 Jul 2016, 03:34 PM

Hi,

I have been unable to right align the contents of a merged cell in my RadGridView using the VS2013 dark theme.

With a little digging following the default cell template, it doesn't have the horizontal alignment bound.

I have therefor altered the control templates ContentControl as follows to fix the problem.

<ContentControl x:Name="PART_ContentPresenter"
   IsTabStop="{TemplateBinding IsTabStop}"
   Margin="{TemplateBinding Padding}"
   Foreground="{TemplateBinding Foreground}"
   Content="{TemplateBinding Content}"
   ContentTemplate="{TemplateBinding ContentTemplate}"
   VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
   VerticalContentAlignment="Stretch"
   <!-- Added below-->
   HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
   <!-- Added above-->
   HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"/>

I am not sure whether this needs updating in the default theme Telerik.Windows.Controls.GridView.xaml but it would seem to make sense to me.

Regards,

Shaun Criten

 

 

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 01 Aug 2016, 01:05 PM
Hi Shaun ,

Thank you for reporting this.

I have logged it in our feedback portal as a bug report. You can track its progress and subscribe to status changes on the following link - feedback item.

I have also updated your Telerik points.

Regards,
Yoan
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Shaun
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or