Declined
Last Updated: 21 Jan 2021 06:29 by ADMIN
Derek
Created on: 16 Jul 2013 15:26
Category: UI for ASP.NET MVC
Type: Feature Request
14
Create <widget>For extension for all widget MVC wrappers to enable single Model binding back to a Controller/Action
A lot of our applications contain a number of prompts for activating certain processes.  These include DropDownLists, DatePickers, etc.  Most of these controls have <widget>For wrappers for binding to a model's properties for sending back to an Controller/Action.  Some of the KendoUI widgets do not have this functionality so we are currently unable to easily submit data back for all of our controls in one model class.  We would like to be able to do this for ListView and Grid.  ListView to return a IEnumerable<class> for all of the selected rows.  And the same for Grid.  GridFor to return a IEnumerable<class> for all of the selected rows.  We need some way to bind all of our widgets inside a form to a single model that has numerous properties so we can get/post to a Controller/Action and have all of that data available very easily witihn one class...and implemented in a consistent manner for all widgets.  ListView and Grid are just 2 that we need right now, but would certainly like for all MVC Widget wrappers to always have <widget>For extensions as a standard practice.  We believe this will make the KendoUI product stand-out among all of the available options and be the easiest to work with.  We want to make our developers highly productive and this will go a long way towards that end.
3 comments
ADMIN
Alex Hajigeorgieva
Posted on: 21 Jan 2021 06:29

Hi,

The Grid and ListView are not form elements and this is the reason why they are not designed to be posted in the same way as a NumercTextBox.

Posting back to the controller with a form is quite an outdated approach and if you would like to use it, we have an example in our repository here:

https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/grid/post-grid-with-form

The contemporary approach is to just send the data by using Ajax requests:

Grid batch editing - https://demos.telerik.com/aspnet-mvc/grid/editing

ListView editing - https://demos.telerik.com/aspnet-mvc/listview/editing

Regards,
Alex Hajigeorgieva
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Telerik Admin
Posted on: 21 Aug 2014 09:16
This item is still under consideration at the present moment.
Pier-Luc
Posted on: 20 Aug 2014 20:18
This has been under review for over a year. What is going on?