or
@(Html.Kendo().CurrencyTextBox()
.Name("Tariff")
.Spinners(true)
.Value(305).Culture("de-DE")
<
div
data-role
=
"view"
data-init
=
"mobileListViewPullToRefresh"
data-title
=
"What's New"
id
=
"tabstrip-whatsnew"
data-layout
=
"mobile-tabstrip"
>
<
ul
id
=
"pull-to-refresh-listview"
></
ul
>
</
div
>
<
script
id
=
"pull-to-refresh-template"
type
=
"text/x-kendo-template"
>
<
div
class
=
"post"
>
<
a
href
=
"#= url #"
><
img
class
=
"menuimage"
src
=
"#= thumbnail_images.full.url #"
alt
=
"#= title #"
/></
a
>
<
a
href
=
"#= url #"
><
span
class
=
"title"
>#= title #</
span
> </
a
>
</
div
>
</
script
>
<
script
>
function mobileListViewPullToRefresh() {
var dataSource = new kendo.data.DataSource({
serverPaging: true,
pageSize: 10,
transport: {
read: {
url: "http://www.iviewsource.com/?json=recentstories", // the remote service url - Twitter API v1.1
dataType: "jsonp" // JSONP (JSON with padding) is required for cross-domain AJAX
},
parameterMap: function(options) {
return {
q: "javascript",
count: options.pageSize
};
}
},
schema: { // describe the result format
// the data which the data source will be bound to is in the "results" field
data: function(data) {
return data.posts || [];
}
}
});
$("#pull-to-refresh-listview").kendoMobileListView({
dataSource: dataSource,
pullToRefresh: true,
appendOnRefresh: true,
template: $("#pull-to-refresh-template").text()
});
}
</
script
>
.k-grid tbody tr, .k-grid tbody tr td
{
min-height
:
20px
;
}
var stocksDataSource = new kendo.data.DataSource({
transport: {
read: {
url: function () {
return <%= url %>;
},
dataType: "json"
}
},
group: {
field: "GroupId"
},
sort: {
field: "X1",
dir: "asc"
},
schema: {
model: {
fields: {
X1: {
type: "date"
}
}
}
}
});
function createChart() {
$("#chart").kendoChart({
title: { text: "Stock Prices" },
dataSource: stocksDataSource,
series: [{
type: "scatterLine",
xField: "X1",
yField: "Y1",
yAxis: "abc",
name: "Y1",
groupNameTemplate: "#= group.value # (#= series.name #)"
},
{
type: "scatterLine",
xField: "X1",
yField: "Y2",
yAxis: "torque",
name: "Y2",
groupNameTemplate: "#= group.value # (#= series.name #)"
}],
legend: {
position: "bottom"
},
yAxes: [{
name: "abc",
title: {
text: "Power (bhp)"
}
}, {
name: "torque",
title: {
text: "Torque (lb-ft)"
}
}],
xAxis: {
labels: {
format: "dd MMM yy"
}
}
});
}
$(document).ready(function () {
setTimeout(function () {
// Initialize the chart with a delay to make sure
// the initial animation is visible
createChart();
$("#example").bind("kendo:skinChange", function (e) {
createChart();
});
}, 400);
});
[{
"X1"
:
"2012-01-20T00:00:00"
,
"Y1"
:100.0,
"GroupId"
:
"S1"
},{
"X1"
:
"2013-01-02T00:00:00"
,
"Y1"
:110.0,
"GroupId"
:
"S1"
},{
"X1"
:
"2013-01-03T00:00:00"
,
"Y1"
:110.0,
"GroupId"
:
"S1"
},{
"X1"
:
"2013-01-03T00:00:00"
,
"Y1"
:110.0,
"GroupId"
:
"S1"
},{
"X1"
:
"2013-01-03T00:00:00"
,
"Y1"
:110.0,
"GroupId"
:
"S1"
},{
"X1"
:
"2013-01-04T00:00:00"
,
"Y1"
:120.0,
"GroupId"
:
"S1"
},{
"X1"
:
"2013-01-05T00:00:00"
,
"Y1"
:130.0,
"GroupId"
:
"S1"
},{
"X1"
:
"2013-01-06T00:00:00"
,
"Y1"
:140.0,
"GroupId"
:
"S1"
},{
"X1"
:
"2013-01-10T00:00:00"
,
"Y1"
:150.0,
"GroupId"
:
"S1"
},{
"X1"
:
"2013-01-01T00:00:00"
,
"Y2"
:1.0,
"GroupId"
:
"S2"
},{
"X1"
:
"2013-01-02T00:00:00"
,
"Y2"
:2.0,
"GroupId"
:
"S2"
},{
"X1"
:
"2013-01-03T00:00:00"
,
"Y2"
:3.0,
"GroupId"
:
"S2"
},{
"X1"
:
"2013-01-03T00:00:00"
,
"Y2"
:4.0,
"GroupId"
:
"S2"
},{
"X1"
:
"2013-01-03T00:00:00"
,
"Y2"
:5.0,
"GroupId"
:
"S2"
},{
"X1"
:
"2013-01-04T00:00:00"
,
"Y2"
:6.0,
"GroupId"
:
"S2"
},{
"X1"
:
"2013-01-05T00:00:00"
,
"Y2"
:7.0,
"GroupId"
:
"S2"
},{
"X1"
:
"2013-01-06T00:00:00"
,
"Y2"
:8.0,
"GroupId"
:
"S2"
},{
"X1"
:
"2013-01-07T00:00:00"
,
"Y2"
:9.0,
"GroupId"
:
"S2"
}]