text/x-kendo-template,the @Html.Raw() cannot be used

2 posts, 0 answers
  1. Yilang
    Yilang avatar
    12 posts
    Member since:
    Jan 2016

    Posted 07 Sep Link to this post

    In my template,the code like this:

    <script type="text/x-kendo-template" id="template">
        <div id="details-container">
            <p>内容:</p>
           <div id="div_con">@Html.Raw("#=Content#")</div>
        </div>
    </script>

    #=Content# and the result like this:

    内容:
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#333333;font-family:SimSun, 'Microsoft YaHei', sans-serif;font-size:16px;line-height:32px;text-indent:32px;">木屑颗粒机是生物质燃料颗粒形成机系例产品中的优质产品代表之一,,它不仅帮助我们解决了一些农村废弃的玉米秸秆、棉花秸秆、稻草秸秆、木糠、木粉、木屑、花生壳、稻壳等这些农作物的外壳面临着存放难的问题。</span><p style="margin-bottom:0px;padding:0px;text-indent:32px;line-height:1.8;color:#333333;font-family:SimSun, 'Microsoft YaHei', sans-serif;font-size:16px;"></p><p style="margin-bottom:0px;padding:0px;text-indent:32px;line-height:1.8;color:#333333;font-family:SimSun, 'Microsoft YaHei', sans-serif;font-size:16px;">对于木屑颗粒机设备本身而言。</p>

     

    How to resolve it?

  2. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 09 Sep Link to this post

    Hello Yilang,

    I've already replied to your query in the following thread:
    http://www.telerik.com/forums/listview-in-text-x-kendo-template

    I suggest that we continue our conversation on the mentioned thread for more efficient correspondence.

    Regards,
    Eyup
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top