This question is locked. New answers and comments are not allowed.
Not sure if this is the right spot, but here goes anyway.
I am trying to figure out how to handle binding an image in a listview, but potentially modifying the data first.
Here is my HTML:
​
my issue is the CoverURL data could be a string value of "NoImage". I need to parse it out and check if the value is NoImage, and if so, replace it.
I am using a kendo DataSource to grab the data from an Azure DB.
Anyone have any ideas?
I am trying to figure out how to handle binding an image in a listview, but potentially modifying the data first.
Here is my HTML:
<div data-role="view" data-title="Results" data-layout="results" data-model="APP.models.results" > <ul data-role="listview" data-style="inset" data-template="booksTemplate" data-bind="source: ds"></ul></div><!-- this is the template used by the listview. template items are automatically wrapped in an <li> by Kendo UI Mobile --><script type="text/x-kendo-template" id="booksTemplate"> <table> <tr> <td rowspan="3" style="vertical-align:top"> <img src="#: data.CoverURL #" width="75" /> </td> <td><div style="font-size: large; font-weight:bold">#: data.Title #</div></td> </tr> </table></script>​
my issue is the CoverURL data could be a string value of "NoImage". I need to parse it out and check if the value is NoImage, and if so, replace it.
I am using a kendo DataSource to grab the data from an Azure DB.
Anyone have any ideas?
