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?
Maya.....thank you this worked as well as demo from Nikifor.
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)
{
sender.get_contentPane().findChild("TextBox2").focus();
}
seems to work as expected.
Let me know if you have any questions or concerns regarding this.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Unfortunately, I have been unable to use the server side code to set the focus. Is the focus really being set in the Initialize or Loaded event of the WebDialogWindow via the javascript?
Hello Jason,
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.