This is a migrated thread and some comments may be shown as answers.

Default values no longer populating on create

2 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Iron
Bob asked on 10 Sep 2019, 04:24 PM

After upgrading to UI for ASPNET MVC 2019.2.619, default values defined in the grid's datasource section are no longer populating. This was working in a previous version.  Now when clicking the new button, the fields are blank.  Below is just an example.  No code was changed from the previous version.  This is for pop-up editing with a template.  Any help would be appreciated.

 

.Model(model =>
 {
     model.Id(m => m.TruckKey);
     model.Field(f => f.DriverName).DefaultValue("Driver Name");
 })

2 Answers, 1 is accepted

Sort by
0
Bob
Top achievements
Rank 1
Iron
answered on 11 Sep 2019, 12:38 PM

Apparently this is a known issue with this release:

https://github.com/telerik/kendo-ui-core/issues/5139

0
Tsvetomir
Telerik team
answered on 12 Sep 2019, 07:57 AM
Hi Bob,

It is correct that the default value does not get applied with the latest version - 2019.2.619. This is a regression introduced in the data source which indirectly affect the grid. 

As a temporary solution, I can suggest that you either download the latest internal build or revert back to the 2019.2.514 version where the issue is not present. 

Alternatively, you can opt for upgrading to the latest version next week, when an official release would take place.


Best regards,
Tsvetomir
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Bob
Top achievements
Rank 1
Iron
Answers by
Bob
Top achievements
Rank 1
Iron
Tsvetomir
Telerik team
Share this question
or