New to KendoReactStart a free 30-day trial

Change the initial values and reset the Form

Environment

Product Version5.14.1
ProductProgress® KendoReact Form

Description

How can I reset the Form multiple times to the initial values? Also, can I change the initial values dynamically?

Solution

To reset the Form to the initial values the component must re-mount. This can be achieved by changing the "key" property of the Form to unique value.

The same technique can be used for changing the initial value by first changing the variable in the state and then changing the "key" property.

Following is an example demonstrating this approach:

Change Theme
Theme
Loading ...
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support