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 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
    Admin
    Eyup avatar
    3014 posts

    Posted 19 Sep 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">
        <ItemTemplate>
            <%# Eval("ShipCountry") %> - A | <span style="background-color: aqua;">02</span> | RE
        </ItemTemplate>
    </telerik:GridTemplateColumn>

    I hope this will prove helpful.

    Regards,
    Eyup
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top