List View with HTML fomatted test Data

2 posts, 1 answers
  1. UFIS
    UFIS avatar
    15 posts
    Member since:
    Oct 2013

    Posted 07 Nov 2013 Link to this post

    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
  2. Answer
    Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 11 Nov 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top