Hi
I have a simple razor page using the Listview
@(Html.Kendo().ListView<MVCTicketSystem.ViewModels.TicketDetail>(Model)
.Name("listView")
.TagName("div")
.ClientTemplateId("list-view-template")
.DataSource(dataSource => dataSource
.Model(model => model.Id("TicketEntryId"))
.PageSize(5)
.Create(create => create.Action("TicketDetail_Create", "Ticket").Data("TicketInfo"))
.Read(read => read.Action("TicketDetail_Read", "Ticket").Data("TicketInfo"))
.Update(update => update.Action("TicketDetail_Update", "Ticket"))
.Destroy(destroy => destroy.Action("TicketDetail_Destroy", "Ticket"))
.Sort(f=>f.Add(p=>p.DetailDate).Descending())
)
.Pageable()
.Editable())
The Create method works but the object is partially populated at the server side and I need to visualize this data when the object is added to the list. So I need to either trigger a refresh of the current page or of the added object or something simular after the create.
I've searched the forum but can't find an answer to this problem which is strange as I guess everyone needs this kind of behavior.
best regards
I have a simple razor page using the Listview
@(Html.Kendo().ListView<MVCTicketSystem.ViewModels.TicketDetail>(Model)
.Name("listView")
.TagName("div")
.ClientTemplateId("list-view-template")
.DataSource(dataSource => dataSource
.Model(model => model.Id("TicketEntryId"))
.PageSize(5)
.Create(create => create.Action("TicketDetail_Create", "Ticket").Data("TicketInfo"))
.Read(read => read.Action("TicketDetail_Read", "Ticket").Data("TicketInfo"))
.Update(update => update.Action("TicketDetail_Update", "Ticket"))
.Destroy(destroy => destroy.Action("TicketDetail_Destroy", "Ticket"))
.Sort(f=>f.Add(p=>p.DetailDate).Descending())
)
.Pageable()
.Editable())
The Create method works but the object is partially populated at the server side and I need to visualize this data when the object is added to the list. So I need to either trigger a refresh of the current page or of the added object or something simular after the create.
I've searched the forum but can't find an answer to this problem which is strange as I guess everyone needs this kind of behavior.
best regards