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

GridViewSelectColumn doesn't use the current Telerik

5 Answers 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 21 Mar 2012, 03:22 PM
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

5 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 21 Mar 2012, 04:45 PM
Hi Patrick,

 

Please check the following forum thread for further reference. 


Kind regards,
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
0
Vanya Pavlova
Telerik team
answered on 22 Mar 2012, 12:53 PM
Hello Patrick,

 

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.  




Greetings,
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:
var ACheckBox = new CheckBox();
StyleManager.SetTheme(ACheckBox, StyleManager.ApplicationTheme);
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
0
Accepted
Vanya Pavlova
Telerik team
answered on 22 Mar 2012, 02:14 PM
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
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Vanya Pavlova
Telerik team
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or