Event collisions

2 posts, 0 answers
  1. TonyG
    TonyG avatar
    239 posts
    Member since:
    Feb 2006

    Posted 01 Nov 2010 Link to this post

    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!
  2. Radoslav
    Admin
    Radoslav avatar
    1566 posts

    Posted 05 Nov 2010 Link to this post

    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
Back to Top