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

List View with HTML fomatted test Data

1 Answer 23 Views
ListView
This is a migrated thread and some comments may be shown as answers.
UFIS
Top achievements
Rank 1
UFIS asked on 07 Nov 2013, 08:26 AM
Dear Support Team,

I have some issue on binding data at the List View. At the Json string, the return value has been formatted with as HTML (<b>LH 1611 MUC STD07:50/05 ETD </b><br>Flight Status: <br>Remark: ) . So at my list view, it should show  like this :

LH 1611 MUC STD07:50/05 ETD
Flight Status:
Remark:
but I cannot see like that and just see like normal string. How can I able to bind to see the data properly. I attach my sample application.

And Another thing is that which css class should I call to show it properly.

Thanks & regards,
UFIS

1 Answer, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 11 Nov 2013, 08:10 AM
Hello,

You are using the #: # exrepssion which actually encodes the HTML before adding it. To output the values in raw format you need to use #= #.

More about templates can be found here:

http://docs.kendoui.com/getting-started/framework/templates/overview

Also I am not sure I understand your second question, you have added product class to the div element that wraps what you display, you can add CSS rule and customize it.

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ListView
Asked by
UFIS
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or