Completed
Last Updated: 12 Sep 2019 04:55 by ADMIN
Walter Edwards
Created on: 12 Sep 2019 00:00
Category: Grid
Type: Feature Request
0
Grid columns with DropDownLists should natively support displaying / sorting / filtering by TextField (ex. ProductName), but save ValueField (ex. ProductID).
I have NEVER seen a real world UI with a DropDownList in a Grid where you didn't want to save the ValueField of the DropDownList (ex. Product ID), but also wanted to display the TextField (ex. Product Name) as well as sort and filter by the TextField.  This functionality should be part of the grid and the default behavior for DropDownLists.
1 comment
ADMIN
Marin Bratanov
Posted on: 12 Sep 2019 04:55

Hello Walter,

The dropdownlist component is not an out-of-the-box editor in the grid. It is used as a custom editor.

This means that it is in your control to set up the dropdown behavior:

  • Define the text field shown in it. It can even be different information than what's in the grid.
  • Define the value field that will be "hidden" behind the text.
  • Determine how to use both these fields and information in order to update the model the grid is bound to (and, the database).

as well as the grid behavior:

With this, you have full control over the data display, data operations and editing operations.

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor