New to Telerik UI for Blazor? Download free 30-day trial

Error KeyNotFoundException About Key inputElementValue

Environment

Product UI for Blazor

Description

When I use Add, Delete or Edit Commands in the Grid, I get an error KeyNotFoundException about a key inputElementValue not present in the dictionary.

A date field in the Grid popup editing is crashing.

When I set the focus on a DatePicker or DateInput and tab to switch to another component, I get an error.

Error Message

System.Collections.Generic.KeyNotFoundException: The given key 'inputElementValue' was not present in the dictionary.

Possible Cause

This error indicates that the app is using an old or wrong version of the telerik-blazor.js file, for example, after a component version upgrade.

Solution

To resolve the error:

See Also

In this article