or
.Columns(columns =>
{
columns.Template(c => c.ContactID)
.ClientTemplate("<
a
href=\"/Contacts/Details/#=ContactID#\">#=Name#</
a
>")
.Title("Name");
columns.Template(c => c.Account.AccountName)
.ClientTemplate("<a
href=\"/Accounts/Details/#=AccountID#\">#=Account.AccountName#</
a
>")
.Title("Account");
})
@
for
(int i = 12; i > 0; i--)
{
<text>
{
field:
'Month@(i).EHR'
,
title:
'Month@(i)'
,
template:
'#if (Month@(i) != null) {#$#:Month@(i).EHR#.00 (#:Month@(i).TotalTime#)#} else {# #:"--"# #} #'
,
width: 20
},
</text>
}
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web.Services;
public
partial
class
KendoUI : System.Web.UI.Page
{
protected
void
Page_Load(
object
sender, EventArgs e)
{
}
[WebMethod]
public
static
string
GetJson()
{
System.Web.Script.Serialization.JavaScriptSerializer serializer =
new
System.Web.Script.Serialization.JavaScriptSerializer();
List<Dictionary<
string
,
object
>> rows =
new
List<Dictionary<
string
,
object
>>();
Dictionary<
string
,
object
> row;
for
(
int
i = 0; i <= 5; i++) {
row =
new
Dictionary<
string
,
object
>();
row.Add(
"country"
,
"Singapore"
);
row.Add(
"year"
, (2000 + i).ToString() );
row.Add(
"value"
, 50 + i);
rows.Add(row);
}
return
serializer.Serialize(rows);
}
}
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="KendoUI.aspx.cs" Inherits="KendoUI" %>
<!doctype html >
<
html
>
<
head
runat
=
"server"
>
<
link
href
=
"KendoCSS/kendo.dataviz.min.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
script
src
=
"KendoJs/jquery.min.js"
type
=
"text/javascript"
></
script
>
<
script
src
=
"KendoJs/kendo.dataviz.min.js"
type
=
"text/javascript"
></
script
>
<
script
src
=
"KendoJs/kendo.data.min.js"
type
=
"text/javascript"
></
script
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
div
class
=
"chart-wrapper"
>
<
div
id
=
"chart"
></
div
>
<
div
id
=
"test"
/>
</
div
>
</
div
>
</
form
>
</
body
>
<
script
>
$(document).ready(function () {
$.ajax({
type: "POST",
url: "KendoUI.aspx/GetJson",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
if (data != "") {
$("#test").html(internetUsers);
$("#chart").kendoChart({
theme: $(document).data("kendoSkin") || "default",
dataSource: {
data: internetUsers
},
title: {
text: "Internet Users"
},
legend: {
position: "bottom"
},
seriesDefaults: {
type: "line",
labels: {
visible: true,
format: "{0}%"
}
},
series: [{
field: "value",
name: "Singapore"
}],
valueAxis: {
labels: {
format: "{0}%"
}
},
categoryAxis: {
field: "year"
}
});
}
}
})
});
</
script
>
</
html
>
$(
'#target'
).kendoSplitter({
orientation:
'horizontal'
,
panes: [
{ collapsible:
false
, resizable:
false
, size:
'25%'
},
{ collapsible:
false
, resizable:
false
, size:
'25%'
},
{ collapsible:
false
, resizable:
false
, size:
'25%'
},
{ collapsible:
false
, resizable:
false
, size:
'25%'
},
{ collapsible:
false
, resizable:
false
, size:
'25%'
},
{ collapsible:
false
, resizable:
false
, size:
'25%'
},
{ collapsible:
false
, resizable:
false
, size:
'25%'
}
]
});
<
div
id
=
"target"
class
=
"k-widget k-splitter"
data-role
=
"splitter"
>
<
div
class
=
"k-pane k-scrollable"
role
=
"group"
style
=
"position: absolute; top: 0px; width: 300px; height: 300px; left: 0px;"
>1</
div
><
div
data-marker
=
"f3ca4302"
class
=
"k-splitbar k-state-default k-splitbar-horizontal k-splitbar-static-horizontal"
tabindex
=
"0"
role
=
"separator"
aria-expanded
=
"true"
style
=
"height: 300px; left: 300px;"
></
div
>
<
div
class
=
"k-pane k-scrollable"
role
=
"group"
style
=
"position: absolute; top: 0px; width: 300px; height: 300px; left: 307px;"
>2</
div
><
div
data-marker
=
"f3ca4302"
class
=
"k-splitbar k-state-default k-splitbar-horizontal k-splitbar-static-horizontal"
tabindex
=
"0"
role
=
"separator"
aria-expanded
=
"true"
style
=
"height: 300px; left: 607px;"
></
div
>
<
div
class
=
"k-pane k-scrollable"
role
=
"group"
style
=
"position: absolute; top: 0px; width: 300px; height: 300px; left: 614px;"
>3</
div
><
div
data-marker
=
"f3ca4302"
class
=
"k-splitbar k-state-default k-splitbar-horizontal k-splitbar-static-horizontal"
tabindex
=
"0"
role
=
"separator"
aria-expanded
=
"true"
style
=
"height: 300px; left: 914px;"
></
div
>
<
div
class
=
"k-pane k-scrollable"
role
=
"group"
style
=
"position: absolute; top: 0px; width: 300px; height: 300px; left: 921px;"
>4</
div
><
div
data-marker
=
"f3ca4302"
class
=
"k-splitbar k-state-default k-splitbar-horizontal k-splitbar-static-horizontal"
tabindex
=
"0"
role
=
"separator"
aria-expanded
=
"true"
style
=
"height: 300px; left: 1221px;"
></
div
>
<
div
class
=
"k-pane k-scrollable"
role
=
"group"
style
=
"position: absolute; top: 0px; width: 300px; height: 300px; left: 1228px;"
>5</
div
><
div
data-marker
=
"f3ca4302"
class
=
"k-splitbar k-state-default k-splitbar-horizontal k-splitbar-static-horizontal"
tabindex
=
"0"
role
=
"separator"
aria-expanded
=
"true"
style
=
"height: 300px; left: 1528px;"
></
div
>
<
div
class
=
"k-pane k-scrollable"
role
=
"group"
style
=
"position: absolute; top: 0px; width: 300px; height: 300px; left: 1535px;"
>6</
div
><
div
data-marker
=
"f3ca4302"
class
=
"k-splitbar k-state-default k-splitbar-horizontal k-splitbar-static-horizontal"
tabindex
=
"0"
role
=
"separator"
aria-expanded
=
"true"
style
=
"height: 300px; left: 1835px;"
></
div
>
<
div
class
=
"k-pane k-scrollable"
role
=
"group"
style
=
"position: absolute; top: 0px; width: 0px; height: 300px; left: 1842px;"
>7</
div
>
</
div
>
<
div
class
=
"k-pane k-scrollable"
role
=
"group"
style
=
"position: absolute; top: 0px; width: 0px; height: 300px; left: 1842px;"
>7</
div
>