Fast clicking results in a big mess

Hello @Team

Recently I deployed my app in a cloud service, and some issues appeared due to the delays in connection. For example, it's possible to click multiple times on the same row in a DataGrid before the dialog appears, usually causing duplicated data in the database. The same happens with the create button and so on.

Any ideas on how to circumvent these issues?

How does opening a dialog multiple times cause duplicated data in the database? The default forms that Radzen generates save data only when the form is submitted.

The same as above - how does opening a dialog create data in the database?

In general you can set the Disabled property of those buttons to false as soon as they are clicked and enable it back when the dialog is closed.

1 Like

My bad, I didn't mean that opening a dialog multiple times results in duplicated data in the database. Saving multiple dialogs, which either update or create data in the database, results in duplicated data. This happens because the dialogs that are underneath becomes outdated if the one on top is saved.

I am not using the generated pages though, my data structure became is too complex and the submits are larger than usual:

:+1:

And how about the row click?

Hey @kim,

You can use also conditions with flags what can be executed or not. That code block can be extracted and declared as custom method also.

1 Like