Declined
Last Updated: 25 Feb 2021 19:44 by ADMIN
Andrzej
Created on: 17 Feb 2021 06:00
Category: Grid
Type: Feature Request
0
Custom Grid Popup Simplification

Hi,

Please simplify customizing Grid Popup, it should be available under Grid with build-in context and binding

I am already using your do-it-yourself example but IMHO it is too much code

Regards

Andrzej

2 comments
ADMIN
Marin Bratanov
Posted on: 25 Feb 2021 19:44

We have not had any further feedback on how that could be accomplished and there are two major drawbacks to even attempting it:

  • if we expose a template for the body of the window, you still can't customize the title, commands, command buttons
  • if we expose the entire window so you can control all its setting (not just the content but also commands and title) - that would be exactly the same like defining your own custom popup editor, but with extra steps and more complex (and thus - less flexible) API.

I have also updated the sample project for a custom popup form to also include an example of extracting that form to a separate component, and one of shortening the edit window content by using the Telerik Form component. You can use those as base to further optimize and extract the necessary code as per your preferences and needs (keeping the CRUD operations next to the grid is not mandatory, I just preferred it that way in the sample).

With this in mind, I am marking this as Declined since we have I can find no relevant information and I cannot see a way to achieve this so that it is actually beneficial.

 

Regards,
Marin Bratanov
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
Marin Bratanov
Posted on: 17 Feb 2021 12:31

Hello Andrzej,

The popup editor has the following:

  • command buttons - close, cancel, save. Their texts are localizable and you can Follow this and this for more customization options. They can hardly be simpler than they are right now, however.
  • list of editors - this is controlled by the list of columns in the grid, and I can't see this becoming simpler either. You can Follow this for a way to change that if you are interested in a mismatch between the display and editing.
  • the text (label) of the editor - this is controlled through the Title of the column with the goal being that it matches what the user sees in "view" mode. The approach from the previous link above would be applicable if you want to change that too. You can also control the column titles through metadata in the model (Display(Name), see more here).
  • editor for the column - the grid chooses one based on the field type, and you can customize that through the editor template (It works for the popup edit mode too).

With that said, could you provide some more details on what exactly you would want to customize more easily - there are templates and model metadata settings + events for most the elements, and there are other requests for the buttons and title that are not customizable right now.

If you want to literally change everything, what would the grid provide to make this easier, considering you will have to write your own code for all of it anyway?

 

Regards,
Marin Bratanov
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/.