I am opening a WebDialogWindow from CodeBehnind, how can I set the focus to a control within the dialog window. Using control.SetFocus or SetFocus(control) are not working?
Please take a look at the attached from me sample created via NetAdvantage 11.2.20112.2055 and tested via IE 9 and Chrome. It contains an ASP button which after pressing makes a WDW visible and sets the focus to the second textbox of the WDW.
Hello jaboof ,
It seems that you can’t set the focus to the controls inside the dialog window on the server side.
However setting it on the initialize event with:
function WebDialogWindow1_Initialize(sender, eventArgs)
seems to work as expected.
Let me know if you have any questions or concerns regarding this.
Developer Support Engineer
Maya.....thank you this worked as well as demo from Nikifor.