Is character Shading supported in Gridview Cell ?

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    4 posts
    Member since:
    Sep 2012

    Posted 17 Dec 2013 Link to this post

    Hi,
    Is character shading (not background color) supported in Gridview cell (similar to character shading in Microsoft Word) ?
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 20 Dec 2013 Link to this post

    Hello,

    I guess that you are targetting an effect similar to the one that is illustrated on the attached image. You can achieve it with a custom DataTemplate, like this:
    <telerik:GridViewDataColumn DataMemberBinding="{Binding StadiumCapacity}"
                                                Header="Stadium"
                                                DataFormatString="{}{0:N0}">
                        <telerik:GridViewDataColumn.CellTemplate>
                            <DataTemplate>
                                <Grid Background="Red" HorizontalAlignment="Left">
                                    <ContentControl Content="{Binding StadiumCapacity}" HorizontalAlignment="Left" />
                                </Grid>                        
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellTemplate>
                    </telerik:GridViewDataColumn>
    Can you please confirm, whether this is the desired effect?

    Regards,
    Ivan Ivanov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
Back to Top