Unbound Column

1 posts, 0 answers
  1. Georg
    Georg avatar
    7 posts
    Member since:
    Sep 2012

    Posted 13 Sep 2012 Link to this post

    Hi,

    i am new to KendoUI. So its maybe a stupid question :). But i don't find a solution.

    I create remote datasource and bind it to a Listview with a template element. Like in our examples:

    $("#openServiceCallsListView").kendoMobileListView({
    dataSource: remoteDataSource,
    template: kendo.template($(
    "#myRowTemplate").html())
    });

    The Template looks like this:
    <script type="text/x-kendo-tmpl" id="myRowTemplate">
    <div>${field1}&nbsp;${field2}&nbsp;${field3}</div>
       </script>

    It works and everything is fine. But now i need an unbound column which contains an image link. Something like:

    "http://localhost/service/GetPicture?Model=" + encodeURIComponent(${field1} + "&Type=" + encodeURIComponent(${field2})

    I don't know, can i call a javascript function in this template? Or is it possible to create a new field in the datasource?

    Cu

    Georg

Back to Top