Last Updated: 05 Jul 2021 07:25 by ADMIN
Created on: 25 Jun 2021 09:16
Category: Grid
Type: Feature Request
Add an option for setting valuePrimitive for foreignKey columns in Grid

Currently, when a foreignKey column is configured in a Grid and the value is null, the valuePrimitive option of the DropDownList should be set. However, in order to set the valuePrimitive for foreignKey column configuring a custom editor is needed as described in the link here. I would like to have the possibility to set the valuePrimitive option as part of the column configurations, without adding a custom editor. For example:

columns: [
              { field: "name", title: "Name" },
              { field: 'category', title: 'Category', width: '200px', values: categories, valuePrimitive: true}
Posted on: 05 Jul 2021 07:25

Hello Eliezer,

Thank you for the suggestion. I checked that with the dev team. The response was that the effort of both options (make valuePrimitive: true default and expose the valuePrimitive option) is the same. Therefore, it will be a better approach to expose the valuePrimitive option. 

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/.

Posted on: 02 Jul 2021 09:25

Hi team.

The ValuePrimitive is, maybe, relevant to the direct use of DropDownLis.
However, for use as an edit component inside the edit popup window,
it must be true for 99.9%  of the cases.

The grid can have thousands of records and a few of them can have null values.

Those a few rows are the main candidate to set their null value to a legitimate value
(one of the values of the foreign keys).

One other alternative is to change the default value to true.
This is one line of code and many many of your clients will ble4ss you for that.


Eliezer Kaplansky PhD.
Makeshet information systems LTD.


Posted on: 02 Jul 2021 05:27


Thank you for the feedback. The task will be considered and added to the to-do list based on the demand and the votes of this item. 

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.