This question is locked. New answers and comments are not allowed.
Hello,
When we are using a GridViewSelectColumn in a RadGridView, the CheckBox is displayed using the Silverlight theme, not the current Telerik application theme.
You can see an example this in the Column Type demo on your site, which uses the Metro theme, but not for this column. To see the difference, open the filter for the Photo column, which displays the CheckBoxes correctly.
Also there is no sense to have a filter on the photo number!
Patrick
When we are using a GridViewSelectColumn in a RadGridView, the CheckBox is displayed using the Silverlight theme, not the current Telerik application theme.
You can see an example this in the Column Type demo on your site, which uses the Metro theme, but not for this column. To see the difference, open the filter for the Photo column, which displays the CheckBoxes correctly.
Also there is no sense to have a filter on the photo number!
Patrick
5 Answers, 1 is accepted
0
Hi Patrick,
Vanya Pavlova
the Telerik team
Please check the following forum thread for further reference.
Vanya Pavlova
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 21 Mar 2012, 04:51 PM
Vanya,
the problem is not that I must set the theme myself for the CheckBoxes, it is that the automatically generated CheckBoxes in a GridViewSelectColumn are not themed. And I can't change the theme of them because they are automatically generated by the Telerik assemblies.
The CheckBoxes of the GridView filters have the right theme, why not the CheckBoxes of this column?
Patrick
the problem is not that I must set the theme myself for the CheckBoxes, it is that the automatically generated CheckBoxes in a GridViewSelectColumn are not themed. And I can't change the theme of them because they are automatically generated by the Telerik assemblies.
The CheckBoxes of the GridView filters have the right theme, why not the CheckBoxes of this column?
Patrick
0
Hello Patrick,
Vanya Pavlova
the Telerik team
Let me try to explain what is the case. The case with RadGridView' FilteringControl is different from the one with GridViewSelectColumn. Actually we are generating this CheckBox control on the fly, by that reason is not themed. In the template of FilteringControl we have a XAML for this CheckBox which tells to this element which theme is the right one. If you want to style these CheckBoxes you may use the approach demonstrated in my previous reply.
Vanya Pavlova
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 22 Mar 2012, 01:47 PM
Hello Vanya,
if you are generating the CheckBoxes on the fly, it is not that difficult to set their theme in the creation code:
Doing so will automatically have a consistent theme in the GridView, without the user having to add code.
In addition your solution does not extend to the whole application. If you have UserControl, the style do not cross the boundary.
Patrick
if you are generating the CheckBoxes on the fly, it is not that difficult to set their theme in the creation code:
var ACheckBox =
new
CheckBox();
StyleManager.SetTheme(ACheckBox, StyleManager.ApplicationTheme);
In addition your solution does not extend to the whole application. If you have UserControl, the style do not cross the boundary.
Patrick
0
Accepted
Hello Patrick,
Thank you for sharing your thoughts with us! We have already fixed this and now the CheckBoxes in GridViewSelectColumn are properly styled. The fix will be included in the next internal build.
I have updated your Telerik points accordingly!
All the best,
Vanya Pavlova
the Telerik team
Thank you for sharing your thoughts with us! We have already fixed this and now the CheckBoxes in GridViewSelectColumn are properly styled. The fix will be included in the next internal build.
I have updated your Telerik points accordingly!
All the best,
Vanya Pavlova
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>