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

Event collisions

1 Answer 48 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
TonyG
Top achievements
Rank 1
TonyG asked on 01 Nov 2010, 10:17 PM

I have a data entry form which is launched as a new RadWindow above a summary page. As users maintain their data, events are fired back to code-behind to do calcs and refresh parts of the current page/window. For example, change a quantity ordered and the current inventory available quantity refreshes from the server. This works fine.

When done, users can also click Save, the current data gets saved on the server and the window is closed. This works fine.

There is a situation where a user will enter data, but not tab/enter away from the RadNumericTextBox. They just click Save without the textbox control losing focus. When this happens the Save triggers the event on the server and "simultaneously" the textbox fires its OnTextChanged event. This frequently results in the RadWindow remaining open, a server error firing, and possibly the session state getting lost.  I can't define a consistent state because it's not consistent - it depends on which event gets processed first - and sometimes there's no error.

I can provide more details but before I go to far, what's the protocol for preventing issues like this?  Do I need to use JavaScript to set some flag in the client when events get fired to Cancel other events?  That seems to require a lot of micro-management that I don't think we should have to do.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 05 Nov 2010, 01:22 PM
Hi TonyG,

I tried to reproduce the described issue but to no avail. I am sending you a simple example. Please check it out and let me know what differs in your case. Also it will be helpful if you send us a small runnable example which demonstrates the issue. You could open a formal support ticket from your Telerik account and attach a ZIP file there. In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

Looking forward for your reply.

Best wishes,
Radoslav
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
TonyG
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or