Completed
Last Updated: 01 Jul 2021 11:38 by ADMIN
Andy
Created on: 16 Jul 2015 13:54
Category: UI for ASP.NET MVC
Type: Feature Request
1
Better support for client-side templates in the grid
When converting a WebForms app with KendoUI controls in it to MVC, I used the MVC wrappers.  One thing that became very apparent is the lack of support for client templates.  For example, a bound column has a ClientTemplate, but no ClientEditorTemplate or ClientHeaderTemplate. Because of this, extra JS code has to be written to manually manipulate different parts of the grid.  Considering the MVC Wrappers render out the same HTML/JavaScript as the pure JavaScript counterpart, it would be EXTREMELY helpful if client templates were made available anywhere a server-side template exists.
1 comment
ADMIN
Viktor Tachev
Posted on: 01 Jul 2021 11:38

Hello Andy,

 

With MVC the editor template for a field is located in the ~/Views/Shared/EditorTemplates folder by default. That folder usually contains partial views with names that match the specific type they would be editing. Inside each partial View there would be the definition of an editor. Check out the article below that describes in more detail how editor templates in the Grid can be specified:

https://docs.telerik.com/aspnet-mvc/html-helpers/data-management/grid/templates/editor-templates#creating-custom-editors-for-bound-properties

As for the ClientHeaderTemplate - it is available in the columns configuration.

 

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.