Forum Discussion

mattc_1's avatar
mattc_1
Occasional Contributor
15 years ago

Infragistics UltraCheckEditor CheckedValueChanged Event

I have an ultracheckeditor and I am throwing up a messagebox that determines what course of action that will be taken. This is all happening inside of a checkedvaluechanged event.



The problem is that the event can't finish so it hangs on me setting the checked state wtih my script. Is there any way to execute a code snippet that clicks the specified button on the messagebox or am I going to have to change the app to work around this problem?





Hopefully I explained this well enough.



Thanks

MC

1 Reply

  • Hi Matthew,


    So, your control displays a message box while processing an event, and TC hangs because it waits till the event is executed.


    Use the Runner.CallObjectMethodAsync method (see the "Calling Methods Asynchronously" help topic) to avoid this situation (TC will not wait till the event is executed).