Ok, I have wore Google out searching for possible solutions so I hope you here can help me. It is something simple I am sure but I have spent a couple of days (no laughing) on this. All I get is "Loading" on trying to load a list view view from a JSON remote datasource...it works fine if I declare the data locally in the file. so here is the code and what is being returned in Fiddler:
Fiddler screenshot and loading screenshot attached.
Thanks much!
Richard
<
div
data-role
=
"view"
data-title
=
"Brokers"
id
=
"side-root"
>
<
ul
id
=
"lvBroker"
data-role
=
"listview"
data-style
=
"inset"
data-source
=
"brokers1"
data-template
=
"brokerTemplate"
>
</
ul
>
</
div
>
<
script
id
=
"brokerTemplate"
type
=
"text/x-kendo-template"
>
<
table
>
<
tr
>
<
td
>
#: data.LastName #, #: FirstName # <
br
/>ph: #: Phone #
</
td
>
</
tr
>
</
table
>
</
script
>
var
brokers1 =
new
kendo.data.DataSource({
transport: {
read: {
type:
'GET'
,
url:
'http://website.com/api/brokers'
+
'/'
+ 1 +
'/all'
,
dataType:
'json'
}
}
});
$(document).ready(
function
(){
var
app =
new
kendo.mobile.Application(document.body, {
transition:
"slide"
//platform: "android"
});
// brokers1.fetch(function(){
// brdata = this.data();
// });
});
Fiddler screenshot and loading screenshot attached.
Thanks much!
Richard