Data Binding using json in ListView

1 posts, 0 answers
  1. Mayank
    Mayank avatar
    1 posts
    Member since:
    Jul 2012

    Posted 21 Sep 2012 Link to this post

    Hi...I saw some examples on the internet regarding data binding using json in ListView but those things are not working in my case. I have a Controller named "Contact" and there is method named "Read", in Read () method I get the Contact list which I want to show in ListView in Mobile. Here is my View Code...

    <div data-role="view" id="tabstrip-profile" data-title="Dashboard" data-layout="mobile-tabstrip"
        <ul data-role="listview" data-style="inset" data-type="group">
                <ul id="contactList">

    <script type="text/javascript">
    var deviceJDS = new{
                transport: {
                    read: {
                        contentType: "application/json; charset=utf-8",
                        type: "GET",
                        data: "{}",
                        dataType: "json",
                        url: "/Contact/Read"
                schema: {
                    data: "d" 

            function initListView(e) {
    template: "<strong>#:data.DisplayName#</strong>",
                dataSource: deviceJDS


    var app = new;

Back to Top