Hi, I'm developing an application and I can't lost the focus on a radcombobox after select an item in the Radcombobox to focus in other control (this example a textbox) by client javascript/jquery code. But in the image attached it seems the focus on both controls. I only want the focus on the textbox.
My code:
<rad:RadComboBox ID="cmbRegDep" Skin="MetroTouch" EnableEmbeddedSkins="true" ShowDropDownOnTextboxClick="true" MarkFirstMatch="true"
runat="server" Height="400px" Width="100%" DataValueField="depNo" DataTextField="depNo" EmptyMessage="Velg" OnClientSelectedIndexChanged="onSelectedIndexChanging_cmbDep"
HighlightTemplatedItems="true" DropDownWidth="300px" OffsetX="0" Filter="Contains" >
<HeaderTemplate>
<ul>
<li class="col1H">Nr.</li>
<li class="col2H">Beskrivelse</li>
</ul>
</HeaderTemplate>
<ItemTemplate>
<ul>
<li class="col1"><%# DataBinder.Eval(Container.DataItem, "depNo") %></li>
<li class="col2"><%# DataBinder.Eval(Container.DataItem, "depName") %></li>
</ul>
</ItemTemplate>
</rad:RadComboBox>
<asp:TextBox ID="txtDep" runat="server"></asp:TextBox>
<script type="text/javascript">
function onSelectedIndexChanging_cmbDep(sender, eventArgs) {
document.getElementById('<%= txtDep.ClientID%>').focus();
}
</script>