I have a bunch of controls inside a RadAjaxPanel.
Some of the controls have auto post back set to true and populate other controls on the page.
When the post back occurs, all focus is lost (pressing tab one time selects the first control on the page).
I tried to fix using the following javascript which I found online: (I put the below inside the Selected IndexChanged event for one of the controls that causes the post back).
Some of the controls have auto post back set to true and populate other controls on the page.
When the post back occurs, all focus is lost (pressing tab one time selects the first control on the page).
I tried to fix using the following javascript which I found online: (I put the below inside the Selected IndexChanged event for one of the controls that causes the post back).
Dim sm As ScriptManager = ScriptManager.GetCurrent(Me)
sm.SetFocus(ddl_Category.ClientID)
The good news is that it works momentarily, I can see focus jump to this control (which happens to be on another part of the page but within the same RadAjaxPanel) and can even get a couple of characters to type if I'm fast. But within less than a second the focus is lost and pressing tab goes to the first control on the page.
I don't know where to even start looking to resolve this issue. I've tried many different methods to try and set focus to the control thinking they weren't working - when I realized that they actually were working they just got overrode a second later I got stuck.
Thanks,