or
@(Html.Kendo().Grid(Model)
.Name("GridField")
.Columns(columns =>
{
columns.Bound(item => item.SalonID);
columns.Bound(item => item.Avtnr);
columns.Bound(item => item.SalonName);
columns.Bound(item => item.Street);
columns.Bound(item => item.ZipCode);
columns.Bound(item => item.City);
columns.Bound(item => item.Telephone);
columns.Bound(item => item.SalonEmail);
columns.Bound(item => item.Description);
columns.Bound(item => item.ContactPerson);
})
.ColumnMenu()
.Groupable()
.Pageable()
.Sortable()
.Resizable(resize => resize.Columns(true))
.Selectable(selectable => selectable.Mode(GridSelectionMode.Single))
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Read", "Salon"))
.ServerOperation(false)
)
.Events(events => events.Change("grid_selected"))
)
$(
"#FilterShowAll"
).click(
function
()
{
var
grid = $(
"#GridField"
).data(
'kendoGrid'
)
grid.dataSource.filter({});
grid.pagable(
false
);
// Error here...
});
<
div
id
=
"heatmapView"
></
div
>
<script id=
"heatmapitem-template"
type=
"text/x-kendo-tmpl"
>
<div class=
"heatmapitem"
style=
"background-color: rgb(${HeatMapColour})"
>
<h3>${Symbol}</h3>
<div>${kendo.toString(Percent,
"p2"
)}</div>
</div>
</script>
$(
"#heatmapView"
).kendoListView({
dataSource: {
transport: {
read: {
url: (
"http://www.getsomedata.com"
),
dataType:
"json"
}
},
batch:
true
},
height: 250,
template: kendo.template($(
"#heatmapitem-template"
).html())
});