This is web app, I have web page with few web containers that have their sets of controls.
When user clicks on New toolbar button I want to enable a particular web text field on the first web container and set the focus (MyField.SetFocus).
I have also 2 timers on this web page.
I have noticed that after clicking on New toolbar button the field (MyField) gets enabled but the focus is not set (I don’t see cursor there). If I click on New one more time the cursor will appear inside MyField.
If I click on Cancel toolbar button to disable MyField and click on New again, the field gets enabled but does not get the focus. If I keep clicking New again (and again if want) the field MyField will get the focus.
Why is the SetFocus not working the very first time? Is it a bug or a feature that I don’t understand?
Can someone wise please explain this behavior to me?
Thanks.
14 posts - 5 participants