or
<
script
>
var isLoggedIn = false;
var app = new kendo.mobile.Application($(document.body), {
initial: "rootView"
});
function verifyLogin() {
app.navigate("http://192.168.1.129/Mobile/Account/Login");
}
</
script
>
$('#smallImage').attr('src', "data:image/jpeg;base64," + imageData);
<
img
id
=
"smallImage"
width
=
"100%"
data-bind
=
"attr: { src: Robot.Picture }"
>
{"data":[{"toto":2,"name":"la valeur de i0"},{"toto":2,"name":"la valeur de i1"}],"count":1,"groups":[{"field":"toto","value":"2","items":[{"toto":2,"name":"la valeur de i0"},{"toto":2,"name":"la valeur de i1"}],"hasSubgroups":false,"aggragates":{}}]}
var
source =
new
kendo.data.DataSource({
type:
"jsonp"
,
transport: {
read:
"Home/GetResult"
},
schema: {
groups:
"groups"
,
total:
"count"
,
model: {
fields: {
toto: { type:
"number"
},
name: { type:
"string"
}
}
},
data:
"result"
},
serverGrouping:
true
});
$(document).ready(
function
() {
$(
"#grid"
).kendoGrid({
dataSource: source,
height: 250,
groupable:
true
,
columns: [{
field:
"toto"
,
title:
"toto"
,
width: 100
},
{
field:
"name"
,
title:
"name"
,
width: 100
}
]
});
});
<
div
data-role
=
"view"
id
=
"myProjectView"
data-title
=
"Products List"
data-init
=
"myProjectListViewTemplatesInit"
>
<
header
data-role
=
"header"
>
<
div
data-role
=
"navbar"
>
<
span
data-role
=
"view-title"
></
span
>
<
a
data-align
=
"right"
data-role
=
"button"
class
=
"nav-button"
href
=
"#index"
>Index</
a
>
</
div
>
</
header
>
<
ul
id
=
"myProjectCustomListView"
></
ul
>
</
div
>
<
script
id
=
"myProjectCustomListViewTemplate"
type
=
"text/x-kendo-template"
>
<
h3
class
=
"item-title"
>Project Name: ${ProjectName}</
h3
>
<
p
class
=
"item-info"
>Created Date: ${CreateDate}</
p
>
</
script
>
<
script
src
=
"scripts/jquery.min.js"
></
script
>
<
script
src
=
"scripts/kendo.mobile.min.js"
></
script
>
<
script
src
=
"scripts/viewModel/myProjectsViewModel.js"
></
script
>
<
script
>var app = new kendo.mobile.Application(document.body);</
script
>
function myProjectListViewTemplatesInit(){
var dataSource = new kendo.data.DataSource({
transport: {
read: {
dataType: "json",
}
},
});
$("#myProjectCustomListView").kendoMobileListView({
dataSource: dataSource,
template: $("#myProjectCustomListViewTemplate").html(),
});
};
[{"ProjectId":2,"ProjectCode":"TestProject","ProjectName":"TestProject","Description":"","CreateDate":"2013-09-13T00:00:00","Owner":"TestProject","StartDate":"2013-09-13T00:00:00","EndDate":"2013-09-13T00:00:00","StatusId":4,"IsActive":true,"ERPCompany":"","TemplateId":0,"DocumentTemplateID":0,"DocMetadataID":null,"IsDeleted":"","ERPCurrency":"$","ProjectMode":"L","DocumentListID":"","RowNum":3,"pagecount-1":null},{"ProjectId":1,"ProjectCode":"TemplateProject","ProjectName":"TemplateProject","Description":"","CreateDate":"2013-09-13T00:00:00","Owner":"Aurigo","StartDate":"2013-09-13T00:00:00","EndDate":"2013-09-13T00:00:00","StatusId":4,"IsActive":true,"ERPCompany":"","TemplateId":0,"DocumentTemplateID":0,"DocMetadataID":null,"IsDeleted":"","ERPCurrency":"$","ProjectMode":"L","DocumentListID":"","RowNum":4,"pagecount-1":null}]