Hi,
I have a RadWindow in which a page is shown, containing a form. I wish the first RadTextBox in that Form to have focus, which works as it should when the page is loaded directly.
But, when I load the page in a RadWindow (dynamically, as it uses a QueryString for parameters, so the url is set from javascript), none of the Controls have focus.
I have altered the page by adding a line that explicitly sets focus to the control in the page load event, but it didn't work. I finally discovered, that setting ShowContentDuringLoad="true" on the RadWindow solved the problem. But that has a negative effect, because if the RadWindow is opened a second time (with a different QueryString), the old page is displayed while the new is loading, which gives a strange effect.
I have tried adding a javascript function to the onload event of the page, which sets focus to the RadTextBox, but even that seems cancelled by the RadWindow.
How can I make sure that the RadTextBox has focus after opening the page in a RadWindow?
I have a RadWindow in which a page is shown, containing a form. I wish the first RadTextBox in that Form to have focus, which works as it should when the page is loaded directly.
But, when I load the page in a RadWindow (dynamically, as it uses a QueryString for parameters, so the url is set from javascript), none of the Controls have focus.
I have altered the page by adding a line that explicitly sets focus to the control in the page load event, but it didn't work. I finally discovered, that setting ShowContentDuringLoad="true" on the RadWindow solved the problem. But that has a negative effect, because if the RadWindow is opened a second time (with a different QueryString), the old page is displayed while the new is loading, which gives a strange effect.
I have tried adding a javascript function to the onload event of the page, which sets focus to the RadTextBox, but even that seems cancelled by the RadWindow.
How can I make sure that the RadTextBox has focus after opening the page in a RadWindow?