Custom Style for GridViewDynamicHyperlinkColumn

9 posts, 1 answers
  1. Kumarashankar Gunasekaran
    Kumarashankar Gunasekaran avatar
    2 posts
    Member since:
    Jun 2012

    Posted 14 Apr 2010 Link to this post

    Hi,

    How to set our own custom style for GridViewDynamicHyperlinkColumn.

    Thanks & Regards,
    Kumarashankar

  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 14 Apr 2010 Link to this post

    Hello Kumarashankar Gunasekaran,

    Please describe the desired output in more details so I can offer you a descent solution.

    Kind regards,
    Pavel Pavlov
    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.
  3. DevCraft banner
  4. Kumarashankar Gunasekaran
    Kumarashankar Gunasekaran avatar
    2 posts
    Member since:
    Jun 2012

    Posted 15 Apr 2010 Link to this post

    Hi,

    How to set the foreground property to telerikGridView GridViewDynamicHyperlinkColumn.

    Thanks & Regards,
    Kumarashankar A G
  5. Answer
    Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 20 Apr 2010 Link to this post

    Hi Kumarashankar Gunasekaran,

    The following XAML demonstrates a DynamicHyperlinkColumn with a red foreground color.
    <telerik:GridViewDynamicHyperlinkColumn DataMemberBinding="{Binding URL}"  Header="search for:" NavigateUrlFormatString="www.google.com" 
                                                         >
                    <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="{Binding URL}" Foreground="Red" />
                            </StackPanel>
                        </DataTemplate>
                    </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>
                </telerik:GridViewDynamicHyperlinkColumn>


    Best wishes,
    Pavel Pavlov
    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.
  6. Vassili King
    Vassili King avatar
    60 posts
    Member since:
    May 2010

    Posted 13 Aug 2010 Link to this post

    And how would you do it in code (I've got a GridViewDynamicHyperlinkColumn and I want to change foreground color of the link)?

    Thank you!
  7. Kamil Massani
    Kamil Massani avatar
    4 posts
    Member since:
    Apr 2010

    Posted 16 Aug 2010 Link to this post

    Can you help me in navigating to a different page(XAML) within the project using GridViewDynamicHyperlinkColumn?

    Thanks
    Kamil
  8. Vassili King
    Vassili King avatar
    60 posts
    Member since:
    May 2010

    Posted 17 Aug 2010 Link to this post

    Here is an answer to my own question:

    Those links are regular Silverlight HyperlinkButtons.  Here is how to style them: http://msdn.microsoft.com/en-us/library/cc296242(v=VS.95).aspx.
  9. Maya
    Maya avatar
    4 posts
    Member since:
    Apr 2016

    Posted 18 Apr in reply to Pavel Pavlov Link to this post

    Hello, 

    How can I set foreground property for cells of GridViewHyperlinkColumn ?

    Thank you in advance,

    Maya

  10. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 18 Apr Link to this post

    Hello Maya,

    In Silverlight, GridViewHyperlinkColumn creates a HyperlinkButton element for its content, so you can use the following style:
    <Style TargetType="HyperlinkButton">
            <Setter Property="Foreground" Value="Red"/>
        </Style>


    Regards,
    Yoan
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
DevCraft banner