GridView nd FontAwesome

3 posts, 0 answers
  1. Marko
    Marko avatar
    2 posts
    Member since:
    Aug 2016

    Posted 10 Aug 2016 Link to this post


    I must use FontAwesome in Telerik GridView for WPF - does anyone know how to do it?



    Beste regards to all!


  2. Marko
    Marko avatar
    2 posts
    Member since:
    Aug 2016

    Posted 10 Aug 2016 in reply to Marko Link to this post

    More info - using FontAwesome.WPF. Displaying in a regular grid works ok.

    I tried this, but the column is empty at run-time

                                    <fa:FontAwesome Icon="Train" FontSize="48" VerticalAlignment="Center" HorizontalAlignment="Center"/>

  3. Stefan Nenchev
    Stefan Nenchev avatar
    665 posts

    Posted 12 Aug 2016 Link to this post

    Hello Marko,

    Please, check the following post where the same topic is discussed - Custom Fonts in WPF applications.

    In the approach you have provided you are setting only the CellEditTemplate, which is applied when the cell is in edit mode. You can try setting the GridViewDataColumn.CellTemplate instead. Furthermore, it seems like you are trying to directly set a font in a DataTemplate. Instead, you need to apply the font to a certain element like TextBlock, as shown in the provided article.

    Stefan Nenchev
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top