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

Learning Kendo List View

2 Answers 207 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Emmanuel
Top achievements
Rank 1
Emmanuel asked on 22 Feb 2012, 12:50 AM
I started learning Kendo Mobile, Is working with a local data, then i tried to work with a simple webservice. the webservice return a List of:

  public class Test
    {
        public string name { get; set; }
        public string Prom { get; set; }
    }

in JSON Format. I verified, and put a break point at the method and also check in Firefox Firebug. it's correct. the following is my code

    <div data-role="view" id="grouped"
        data-transition="" data-title="ListView" data-layout="databinding">
        <ul id="grouped-listview">
        </ul>
    </div>
    <script type="text/javascript">
        $(function () {
            var dataS = new kendo.data.DataSource({
                transport: {
                    read: {
                        type: 'POST',
                        url: 'KendoMobile.asmx/GetTest',
                        dataType: 'json',
                        data: '{}',
                        contentType: 'application/json; charset=utf-8'

                    },
                    schema: {
                        data: 'd'
                    },
                    group: 'Prom'
                }
            });

            $("#grouped-listview").kendoMobileListView({
                 dataSource: dataS,
                template: "${name}"
            });

        });

the page is not showing any data. What's wrong with my code. all CSS, and JS are added correctly since is working with a local data. Any help would be greatly appreciated.

2 Answers, 1 is accepted

Sort by
0
Emmanuel
Top achievements
Rank 1
answered on 10 Mar 2012, 12:56 AM
More than 20 days of posting and viewed more than 2000 times still no answer from Telerik. Our company has all Telerik products, and I was just evaluating mobile software. I think I will continue with jqueryMobile controls, since I got more support at Stackoverflow.  
0
Georgi Tunev
Telerik team
answered on 12 Mar 2012, 03:12 PM
Hello Emmanuel,

The forums are a community resource and we do not guarantee a timely reply here. If you are assigned to an active license for the product, you can submit a support ticket which is the official support channel and is the best way to reach the support staff. In such case the system will automatically assign a response time to the ticket (24 or 48 hours depending on the license type).

As for the problem itself, I see that you have declared the schema object in the transport configuration - it should be declared as a separate setting of the DataSource as shown in the documentation and in the demos.


Greetings,
Georgi Tunev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ListView (Mobile)
Asked by
Emmanuel
Top achievements
Rank 1
Answers by
Emmanuel
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or