or
<
button
id
=
"refresh"
>Refresh Totals</
button
>
var
grid = $(
"#grid"
).kendoGrid({... });
$(
'#refresh'
).click(
function
(){
grid.refresh();
});
@(Html.Kendo().Grid<
Business.EquipmentModel
>()
.Name("Grid")
.Columns(columns =>
{
columns.Bound(e => e.EquipmentId);
columns.Bound(e => e.Make);
columns.Bound(e => e.Model);
columns.Bound(e => e.EquipmentTypeId);
columns.ForeignKey(e => e.EquipmentTypeId, (System.Collections.IEnumerable)Business.EquipmentTypeModel.All(), "EquipmentTypeId", "EquipmentTypeName");
columns.Bound(e => e.FacilityId);
columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200);
})
.ToolBar(toolbar => toolbar.Create())
.Editable(editable => editable.Mode(GridEditMode.InLine))
.Pageable()
.Sortable()
.Scrollable()
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.Model(model => model.Id(e => e.EquipmentId))
.Read(read => read.Action("Equipment_Read", "Facilities"))
.Create(update => update.Action("Equipment_Create", "Facilities"))
.Update(update => update.Action("Equipment_Update", "Facilities"))
.Destroy(update => update.Action("Equipment_Destroy", "Facilities"))
)
)
Requirements |
|
Kendo UI Mobile |
|
jquery-1.8.2 |
|
IOS |
|
group button & popover |