GridViewSelectColumn doesn't use the current Telerik

6 posts, 1 answers
  1. Patrick
    Patrick avatar
    498 posts
    Member since:
    Aug 2012

    Posted 21 Mar 2012 Link to this post

    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
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 21 Mar 2012 Link to this post

    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 >>
  3. Patrick
    Patrick avatar
    498 posts
    Member since:
    Aug 2012

    Posted 21 Mar 2012 Link to this post

    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
  4. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 22 Mar 2012 Link to this post

    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 >>
  5. Patrick
    Patrick avatar
    498 posts
    Member since:
    Aug 2012

    Posted 22 Mar 2012 Link to this post

    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
  6. Answer
    Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 22 Mar 2012 Link to this post

    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 >>
Back to Top