This is a migrated thread and some comments may be shown as answers.

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

1 Answer 274 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Venkat
Top achievements
Rank 1
Venkat asked on 15 Sep 2016, 01:13 AM

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.

 

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 19 Sep 2016, 07:04 AM
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.
Tags
Grid
Asked by
Venkat
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or