KendoGrid enter key in string textbox always shows model.dirty = false

0 Answers 24 Views
Grid
CHRISTOPHER
Top achievements
Rank 1
Iron
CHRISTOPHER asked on 06 Nov 2023, 08:22 PM

If you hit the enter key after changing a string value in the cell, the model.dirty flag does not change.  If you hit the tab key to go to the next cell, the model.dirty switches to true.

Is there a way to force this behavior on the enter key?

CHRISTOPHER
Top achievements
Rank 1
Iron
commented on 07 Nov 2023, 04:22 PM

we are using Kendo UI v2020.3.915

I can see in your demo for Editing Custom Editor that the Product Name exhibits the behavior desired.  The enter key closes the cell.  That does not occur in our version.  Is this something that has been changed somewhere along the way?

Upgrading the Kendo UI suite is a bit risky for us right before a release.

Nikolay
Telerik team
commented on 09 Nov 2023, 12:36 PM

Hi Christopher,

If I understand the current scenario, the Kendo UI Grid in the application has "incell" editing, please correct me if I am wrong. 

The enter key will update the data item and the save event will be triggered out of the box if you add "navigatable: true" to the configuration:

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/configuration/navigatable

However, if the navigatable is not enabled the enter key will not close the cell.

Also, the model.dirty flag will not change when the Grid sends an update request to the server automatically when the cell is closed.

Hope this clarifies the scenario and please let me know if you have any questions.

Regards,

Nikolay

No answers yet. Maybe you can help?

Tags
Grid
Asked by
CHRISTOPHER
Top achievements
Rank 1
Iron
Share this question
or