or
jQuery(
function
(){jQuery(
"#programSpend"
).kendoChart({
"title"
:{
"text"
:
"Program Spend"
},
"legend"
:{
"position"
:
"bottom"
},
"series"
:[{
"name"
:
"Sum of Spend"
,
"type"
:
"line"
,
"field"
:
"Series1Data"
}],
"categoryAxis"
:[{
"labels"
:{
"rotation"
:-90},
"field"
:
"Category"
}],
"valueAxis"
:[{
"labels"
:{
"format"
:
"{0:N0}"
},
"line"
:{
"visible"
:
true
}}],
"dataSource"
:{
"transport"
:{
"prefix"
:
""
,
"read"
:{
"url"
:
"/ChartJson/ProgramSpend"
,
"type"
:
"POST"
}},
"type"
:
"aspnetmvc-ajax"
,
"schema"
:{
"model"
:{
"fields"
:{
"Category"
:{
"type"
:
"string"
},
"Series1Data"
:{
"type"
:
"number"
}}}}},
"tooltip"
:{
"format"
:
"{0:N0}"
,
"visible"
:
true
}});});
{
"Data"
:[{
"Category"
:
"Dec - 13"
,
"Series1Data"
:29994974.40},{
"Category"
:
"Jan - 13"
,
"Series1Data"
:40317364.19},{
"Category"
:
"Feb - 11"
,
"Series1Data"
:46536492.18}]}
var
contactDataSource =
new
kendo.data.DataSource({
transport: {
tbl: azureService.client.getTable(
'CRContact'
),
read:
function
(options) {
this
.tbl.read({ SearchString: options.data.filter.filters[0].value}).done(
function
(d) {
options.success(d);
},
function
(err) {
options.error(err);
});
}
serverFiltering :
true
,
schema: {
model:
{
id:
"id"
,
}
}
this
.tbl.lookup(idThatISendAsParameter).done(
function
(result) {
},
function
(err) {
})
@(Html.Kendo().Grid<
TrainingVideo
>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(x => x.Name);
columns.Bound(x => x.Description);
columns.Bound(x => x.LastUpdateDate);
columns.Command(commands => commands.Custom("EditVideoCommand")
.Text("Edit")
.DataRouteValues(route => route.Add(o => o.VideoUID).RouteKey("videoId"))
.Action("EditSelectedVideo", "Home"));
columns.Command(commands => commands.Custom("DeleteVideoCommand")
.Text("Delete")
.DataRouteValues(route => route.Add(o => o.VideoUID).RouteKey("videoId"))
.Action("DeleteSelectedVideo", "Home"));
columns.Command(commands => commands.Custom("ReplaceVideoCommand")
.Text("Replace")
.DataRouteValues(route => route.Add(o => o.VideoUID).RouteKey("videoId"))
.Action("ReplaceSelectedVideo", "Home"));
}).DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("VideoListRead", "Home"))
).Pageable().Sortable()