I am attempting to setup an editing listview like the demo found on your site: http://demos.kendoui.com/web/listview/editing.html
My listview is setup with a pagesize of 2 but everything else is setup identical to this example.
Currently I have two items in my list and both are displayed when the page is opened. When the Add new record button is clicked a new edit item is added but the last item in the list is not hidden/removed/paged so there are 3 visible items on my screen. Is the script call to listView.add(); responsible for paging the last item to the next page or hiding it till save or cancel is pressed?
Also, the model my listview is based on is part of the page model so my example is declared like this:
@model IEnumerable<Kendo.Mvc.Examples.Models.Admin>
@(Html.Kendo().ListView<Kendo.Mvc.Examples.Models.UserInformationModel>()
.Name("listView")
.TagName("div")
.ClientTemplateId("list-view-template")
.DataSource(dataSource => dataSource
.Model(model => model.Id("Id"))
.PageSize(2)
.Create(create => create.Action("Create", "MyListView"))
.Read(read => read.Action("Read", "MyListView"))
.Update(update => update.Action("Update", "MyListView"))
.Destroy(destroy => destroy.Action("Destroy", "MyListView"))
)
.Pageable()
.Editable()
)
Thanks,
My listview is setup with a pagesize of 2 but everything else is setup identical to this example.
Currently I have two items in my list and both are displayed when the page is opened. When the Add new record button is clicked a new edit item is added but the last item in the list is not hidden/removed/paged so there are 3 visible items on my screen. Is the script call to listView.add(); responsible for paging the last item to the next page or hiding it till save or cancel is pressed?
Also, the model my listview is based on is part of the page model so my example is declared like this:
@model IEnumerable<Kendo.Mvc.Examples.Models.Admin>
@(Html.Kendo().ListView<Kendo.Mvc.Examples.Models.UserInformationModel>()
.Name("listView")
.TagName("div")
.ClientTemplateId("list-view-template")
.DataSource(dataSource => dataSource
.Model(model => model.Id("Id"))
.PageSize(2)
.Create(create => create.Action("Create", "MyListView"))
.Read(read => read.Action("Read", "MyListView"))
.Update(update => update.Action("Update", "MyListView"))
.Destroy(destroy => destroy.Action("Destroy", "MyListView"))
)
.Pageable()
.Editable()
)
Thanks,