Remote Data Source

4 posts, 0 answers
  1. Scott
    Scott avatar
    2 posts
    Member since:
    Aug 2011

    Posted 01 Sep 2011 Link to this post

    I know this should be easy, but I'm having a hell of a time trying to get my remote data source working with templates. Can you give a quick example of how to bind a json datasource to a template (not inline)? Thanks!

    I've tried all of the demos online, but none seem to work as I'd expect.
  2. Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 02 Sep 2011 Link to this post

    Hi Scott,

     The binding to remote data demo shows how to read data from remote service (twitter) and display that data using templates.

    All the best,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Scott
    Scott avatar
    2 posts
    Member since:
    Aug 2011

    Posted 02 Sep 2011 Link to this post

    Thanks for the help! I was missing the call to: 
  4. d2uX
    d2uX avatar
    16 posts
    Member since:
    Jul 2012

    Posted 28 Aug 2012 Link to this post

    Hi there,

    I have a similar issue: I just dont know what I'm doing wrong...
    Since it works with local data I think to format of the returned data is wrong.
    Here is my datasource (js file):
    var home = new{
            parameterMap: function(_options, _op)
                if (_op == 'read')
                    return {
                        ObjectPath: '/Shops/DemoShop/',
                        ViewAction: 'JSONRestGet',
                        Attributes: 'Slogan'
                url: 'DemoShop.admin/',
                type: 'GET',
                dataType: 'jsonp',
                cache: true
        change: function(e) {
            var template = kendo.template($("#headerTpl").html());
            $('#header').html(kendo.render(template, this.view()));

    And here is how the server response looks like:
       "Alias" : "DemoShop",
       "Slogan" : {
          "en" : "English Slogan",
          "de" : "Deutscher Slogan"
       "Self" : "MyDemoShop"

    Can anyone spot what I am missing?
    Do I have to reformat that response?
    The template just never gets rendered.

    Thx in advance.
Back to Top