The Blazor TelerikGrid component should support a dropdown column. It should be exactly the same as the dropdown column in the Ajax grid.
https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/columns/column-types#dropdown
Hello Ed,
Surely, technically we can add a built-in DropDownList editor, but the number of required additional parameters will defeat the purpose - the code will be as bulky, as if you add an EditorTemplate with a component inside. Moreover, the EditorTemplate provides complete flexibility with regard to
Regards,
Dimo
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/.
Dimo,
It could be either scenario. The whole point is to not have to use a template for a dropdown editor in the grid. This is a common scenario and should be provided for. You have it in the ASP.Net Ajax RadGrid, so there is no reason why you could not have it here.
It would function EXACTLY the same way as it does with an EditorTemplate. The difference is the syntax of the markup of the grid column.
This can be done, I'm sure you can make it happen.
Hi Ed,
Are you asking about a foreign key column or you just need a dropdown with a collection of choices during editing?
For the first assumption - we prefer not to have this as a built-in feature for multiple reasons, related to our Blazor components' architecture and the fact that they are decoupled from the data. So, if you have this scenario, bind the <GridColumn> to the foreign key ID, and then use templates for editing, filtering, etc., as in the linked KB article.
For the second assumption - use an EditorTemplate, as in the linked example.
Generally, we recommend developers to adjust the model to the Grid API, which in some cases may mean flattening data in a Grid view model. Doing the opposite may not always produce the best results in terms of developer experience (e.g. too much templating in the foreign key column scenario).
Regards,
Dimo
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/.