RadGrid - How to highlight some part of the text in a cell

2 posts, 0 answers
  1. Venkat
    Venkat avatar
    1 posts
    Member since:
    Sep 2016

    Posted 14 Sep 2016 Link to this post

    Hi Folks, I could not able to find a relevant answer in the forum and hence I am posting this question.

    I have a requirement where I need to highlight some part of the text within a cell. Please find the attachment. Any help on this matter is highly appreciated.

    Thanks in advance.



  2. Eyup
    Eyup avatar
    4046 posts

    Posted 19 Sep 2016 Link to this post

    Hi Venkat,

    You can achieve this requirement using span elements:
    <telerik:GridTemplateColumn DataField="ShipCountry"
        FilterControlAltText="Filter ShipCountry column" HeaderText="ShipCountry"
        SortExpression="ShipCountry" UniqueName="ShipCountry">
            <%# Eval("ShipCountry") %> - A | <span style="background-color: aqua;">02</span> | RE

    I hope this will prove helpful.

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