Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Set focus on custom field in advanced scheduler form

$
0
0
Hello Ruggero,

The reason for the observed issue is the fact that when the form is being loaded on client the focus is again returned to its subject field. What you could do in this case is to implement an event handler for the OnClientFormCreated client side event:
function onClientFormCreated(sender, args) {
    setTimeout(function () {
     // Find the input element of the drop-down list you need to focus
        var box = $telerik.$('#RadScheduler1_Form_ctl37_Input');
        box.focus();
        debugger;
    }, 300);
}

Note that you will have to timeout the execution of the focus function to execute it after the default focus has already been transferred to the Subject input field.

Regards,
Veselin Tsvetanov
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.

Viewing all articles
Browse latest Browse all 84751

Latest Images

Trending Articles



Latest Images

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