Data binding and URLs don't work

2 posts, 0 answers
  1. TJ
    TJ avatar
    58 posts
    Member since:
    Aug 2013

    Posted 28 Jan 2015 Link to this post

    Hey all,

    I'm trying to build a ListView full of images, and the parsing of URLs doesn't appear to be working. Here's the XML:

    <Page navigatedTo="load">
            <ListView items="{{ memes }}">
                    <Image source="{{ url }}" />

    And here's the JS:

    var observableModule = require( "data/observable" ),
        observableArray = require( "data/observable-array" ),
        data = new observableModule.Observable();
    data.set( "memes", new observableArray.ObservableArray([
        { url: "" },
    exports.load = function( args ) {
        args.object.bindingContext = data;

    If I hardcode <Image url="https://..."> the images work, and if I hardcode <Label text="{{ url }}" /> the URLs get parsed from the observable, so I'm not sure what's up. Any ideas?

  2. Erjan Gavalji
    Erjan Gavalji avatar
    1455 posts

    Posted 30 Jan 2015 Link to this post

    Hi TJ,

    Indeed, there is a bug when binding an image. Thanks for the note!

    We're investigating it and will have it fixed for the Beta release.

    Best regards,
    Erjan Gavalji

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top