Page 1 of 2

LockOnAsyncEvents

PostPosted: 27 Mar 2015 15:34
by etwoss
Hi

Do your components get this Property also or does it already have such kind of implementation but i don't see it?

Eric

Re: LockOnAsyncEvents

PostPosted: 27 Mar 2015 15:49
by Alexander Bulei
Hi Eric,

No, use LockIndicator instead...

Best Regards.

Re: LockOnAsyncEvents

PostPosted: 19 May 2019 08:26
by etwoss
Hi

4 years later...

I'm having a lot of problems with users doubleclicking a button instead of single click
TIWButtons LockOnAsyncEvents handles this very good, just one click is executed.

I use a LockIndicator nut still get two executions

Something i can do?

Eric

Re: LockOnAsyncEvents

PostPosted: 19 May 2019 14:18
by etwoss
Hi

The answer on Atozed:

there's two ways to handle it with CGDevTools using 'btnSearch' as an example:

To disable / enable the button - OnCreate{ btnSearch->JQEvents->OnClick->Script = "function (e) { $(<#btnSearch#>).button({ disabled: true }); }";}btnSearchJQButtonOptionsClick{ ...process btnSearch->JQButtonOptions->Disabled = false;}To lock / unlock the whole form - OnCreate{ btnSearch->JQEvents->OnClick->Script = "function (e) { ActivateLock(); }";}btnSearchJQButtonOptionsClick{ ...process WebApplication->CallBackResponse->AddJavaScriptToExecuteAsCDATA("ReleaseLock();");}

Re: LockOnAsyncEvents

PostPosted: 21 May 2019 09:05
by Alexander Bulei
Hi Eric,
Why just not use the LockIndicator as described in several forum topics/examples?

It's works as expected.

Best Regards.

Re: LockOnAsyncEvents

PostPosted: 21 May 2019 21:59
by zsleo
BUMP...
How do I lock the full page while a grid lock indicator is showing and just lock the grid?

TIA

Re: LockOnAsyncEvents

PostPosted: 26 May 2019 08:17
by etwoss
Hi Alexander

When i double click , even with the lockindicator , the buttonclick is called twice

Eric

Re: LockOnAsyncEvents

PostPosted: 30 May 2019 13:00
by Alexander Bulei
Hi Eric,

Check z-index of lock overlay.

Best Regards.

Re: LockOnAsyncEvents

PostPosted: 30 May 2019 19:11
by zsleo
... is there a problem answering my question?

Re: LockOnAsyncEvents

PostPosted: 31 May 2019 08:19
by zsleo
4.1.0.187
IWCGJQLockIndicatorBase
- Improvementd: If control is cgdevtools component, apply the lock to the container of control.


Can someone please explain what the improvement is and how it works.

I will appreciate a simple sample project with a data aware GCD dbgrid and a button.

Do I need to set anyhing different?

Can I now place a lock indicator on both CGD forms and frames

TIA