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

Unbound Column

0 Answers 38 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Georg
Top achievements
Rank 1
Georg asked on 13 Sep 2012, 02:52 PM
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

No answers yet. Maybe you can help?

Tags
Data Source
Asked by
Georg
Top achievements
Rank 1
Share this question
or