Declined
Last Updated: 13 May 2021 07:21 by ADMIN
Morteza
Created on: 05 Aug 2013 12:48
Category: UI for ASP.NET MVC
Type: Feature Request
7
Load create and edit form from server
It would be nice if grid could load edit and create forms from server side by get request.and then save them by post request. it would be much more easier if  some fields in edit/create form could be saved without  loading in grid. 
And also there would be much better control on load data if it is possible to check some conditions in edit form through server.
At the end I suggest to change grid widget to:
@(Html.Kendo().Grid<Model>()
  .DataSource(ds => ds
    .Ajax()
    .Read(r => r.Action("FillGrid", "Controller"))
    .GetCreateForm(c => c.Action("Create", "Controller", "Get"))
    .Create(c => c.Action("Create", "Controller", "Post"))
    .GetEditForm(u => u.Action("Edit", "Controller", "Get"))
    .Update(u => u.Action("Edit", "Controller", "Post"))
)
1 comment
ADMIN
Viktor Tachev
Posted on: 13 May 2021 07:21

Hi Morteza,

 

Currently the Grid popup editor is generated based on the Model that is passed to the component. If you would like to have different popup editors for the Create and Edit operations I suggest using the approach described by Georgi in this post:

https://www.telerik.com/forums/popup-grid-different-templates-on-edit-create#4758182

 

Regards,
Viktor Tachev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.