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
120
Getting Focus on desired control
posted

Hello

i'm using Infragistics 2007 in my application the hierarchy of the page is as follows.

Firstly i'm using masterpage, then in Infragistic's Web Asynchronous Panel i've placed WebTextEdit control. when the form loads all the WebTextEdit controls are disabled then after clicking a button all the controls get enabled. now at that point i wish to set focus to a particular WebTextEdit control.

kindly help me in doing so.

an immediate respose will be highly appreciated.

Regards

Hammad 

 

 

  • 45049
    posted

    Handle the client-side click event of your button, and use JavaScript similar to the following for each WebTextEdit control:

    var ed = igedit_getById("WebTextEdit1"); // Substitute the ClientID of your editor here
    ed.setEnabled(true);

    Additionally, for the one editor you want to have focus, after you've enabled it, use the following line of code to put focus to it:

    ed.focus();