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

GridViewCell implicit styling?

5 Answers 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael Ruddick
Top achievements
Rank 1
Michael Ruddick asked on 27 Apr 2010, 08:01 PM

With the Silverlight 4 build, should the RadGridView's elements be able to be styled using implicit styling?

I'm trying to set a style for all GridViewCells so they use a template that gives no visual indication that a specific cell is selected - only the entire row appears to be selected.  In my Styles.xaml resource dictionary, I have the following:

    <Style TargetType="telerik:GridViewCell">  
        <Setter Property="Template" Value="{StaticResource CustomGridViewCellTemplate}"/>  
        <Setter Property="Padding" Value="5,0,3,0"/>  
        <Setter Property="BorderBrush" Value="{StaticResource GridLinesFill}"/>  
        <Setter Property="BorderThickness" Value="0,0,1,0" /> 
        <Setter Property="VerticalContentAlignment" Value="Center" /> 
        <Setter Property="HorizontalContentAlignment" Value="Stretch" /> 
    </Style> 

As far as I understand, this should apply the style to all GridViewCells in my application - but it's not working.

I have verified that the Styles.xaml file is correctly referenced in my App.xaml file - my other styles are working fine.  Also, if I give this style a key and reference it as a static resource on each of my GridViewDataColumns' CellStyle property, it works fine.

Any suggestions or ideas as to why the implicit styling is not working here?

Thanks!

MIchael

5 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 28 Apr 2010, 09:54 AM
Hi Michael Ruddick,

Unfortunately implicit styling of our controls currently works only for the default theme (Office Black). Currently we are working on improving our style manager to handle the rest of the themes as well and we are hoping we can have it up and running as expected some time after Q2. Until then you will have to resort to old school application of styles and templates.

Best wishes,
Kalin Milanov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jeff
Top achievements
Rank 1
answered on 09 Feb 2011, 07:57 PM
Hi,

Can you please provide an update in regards to this issue, and the overall state of support for implicit styling.  We would like to move away from our custom theme management.  Thanks.

Cheers,
Jeff Boggs
0
Milan
Telerik team
answered on 14 Feb 2011, 10:36 AM
Hi Michael Ruddick,

There are no changes regarding our theming mechanism and support for implicit styles. As my colleague has indicated we will try to introduce improvement for Q2 at the earliest. 


All the best,
Milan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Valeriu
Top achievements
Rank 1
answered on 05 Dec 2011, 03:39 PM
So - almost 1 year later and after 2 big releases - any news on this feature (implicit styling)?
May be new timeframes?
0
Nikolay
Telerik team
answered on 09 Dec 2011, 01:09 PM
Hello Valeriu,

It's in the works. We hope the first results will start appearing with Q1 next year.
 
Greetings,
Nick
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Michael Ruddick
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Jeff
Top achievements
Rank 1
Milan
Telerik team
Valeriu
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or