Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Set focus with WebCurrencyEdit
posted

Hi all. I'd like to know if there's a way I can set a focus to a WebCurrencyEdit control without using javascript.  Thanks in advance.

Parents
No Data
Reply
  • 24497
    posted

    Hi,

    If you want to set focus on initialization of page, then you may try to use property FocusOnInitialization=true. However, it may fail if browser on start will set focus not to browser content, but to its controls like address-field, or toolbar button. In this case nothing will help you to set focus.

    Otherwise you need to use javascript. Example:

    <igtxt:WebCurrencyEdit ID="WebCurrencyEdit1" runat="server"></igtxt:WebCurrencyEdit>
    <input type="button" value="Focus" onclick="igedit_getById('<%=WebCurrencyEdit1.ClientID%>').focus()" />

Children
No Data