Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

scriptmanager.SetFocus(control) not working in AJAX panel

$
0
0

I am trying to set the focus to a text box in a panel with a CollapsiblePanelExtender.  I am using the following in the code-behind (TextChanged event):

Dim ctrl As Control = Helper.FindControl("tbQtyCurrent")
Dim sm As ScriptManager = Helper.FindControl("scriptManager1")

If ((Not (sm) Is Nothing) And (Not (ctrl) Is Nothing)) Then

   sm.SetFocus(ctrl)

End If '((Not (sm) Is Nothing) And (Not (ctrl) Is Nothing))

When debugging, we hit the sm.setfocus(ctrl) line, but it does not actually set the focus.  In fact, nothing has the focus. 

There are no page events settings focus, so I don't know what else to try!!  

Can anyone who knows AJAX help me out?


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>