I am using the ChangeInputColor() function documented in ms-help://telerik.radcontrols.prometheus.2007.Q3/telerik.radcontrols.prometheus.2007.Q3/combo_ClientSideRadComboBox.html as my prototype for trying this with the Prometheus controls.
My radCombobox definition looks like:
<
telerik:radcombobox id="cmboUsers" runat="server" radcomboboximageposition="Right">
<Items>
<telerik:RadComboBoxItem runat="server" Text="Select a user..."></telerik:RadComboBoxItem>
</Items>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
<ExpandAnimation Type="OutQuart"></ExpandAnimation>
</telerik:radcombobox>
<
body onload="fnMaxWindow();fnSetFocus();">
My JavaScript code looks like:
<script language="javascript" type="text/javascript">
function fnSetFocus()
{
var combo = $find("<%= cmboUsers.ClientID %>");
alert("combo = " + combo);
var inputArea = combo.get_inputDomElement();
alert("inputArea = " + inputArea);
inputArea.focus();
}
function fnMaxWindow() {
window.moveTo(0,0);
window.resizeTo(screen.width, screen.height);
}
</script>
When this runs, I get "combo = null" on the first alert, indicating that the $find code doesn't work.
Thanks in advance for the help.