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

disable update button after pressing

1 Answer 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Maurice
Top achievements
Rank 1
Veteran
Maurice asked on 11 May 2016, 01:05 PM

Hi,

One of my grid .update  and .create action take a long time because he really has to do a lot of work in the background.

How can I force people to not pressing the update button more then ones?

Is it possible to disable the update button directly after the first time people click on it?

Thanks in advance

Maurice Lucas

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 12 May 2016, 07:36 AM
Hello,

You can use the RequestStart and RequestEnd events that are fired when the datasource of the grid initiates a request and after the request has completed. On RequestStart you can disable the button using baisc jQuery and then on RequestEnd you can enable it again.

I hope this helps.

Regards,
Marin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Maurice
Top achievements
Rank 1
Veteran
Answers by
Marin
Telerik team
Share this question
or