This is a migrated thread and some comments may be shown as answers.

Combox inside jquery div not working

1 Answer 53 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ravi Tejas
Top achievements
Rank 1
Ravi Tejas asked on 19 Apr 2010, 09:43 AM

Hi All,

I have a rad combo inside a div which is collapsable by jquery.But since the combo is within this div it gets hanged or freezed when there  is postback event.if we remove the jquery for the div then it works fine how do I make it to work fine along with jquery.your help would be highly appreciated.

Regards,
Newton

1 Answer, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 21 Apr 2010, 04:32 PM
Hi Ravi Tejas,

You can handle “OnClientClick” event of the control that causes postback and close the RadComboBox dropdown like this:

<script type="text/javascript">
function btnOnClientClick()
{
    var combo = $find("<%=Products.ClientID  %>");
        if (combo.get_dropDownVisible())
             combo.hideDropDown();
}
</script>
<div>
   <asp:ScriptManager ID="ScriptManager1" runat="server" />
   <telerik:RadComboBox ID="Products" runat="server"
        OnItemsRequested="Products_ItemsRequested"
        EnableLoadOnDemand="true">
    </telerik:RadComboBox>
    <asp:Button ID="btn" runat="server" Text="Submit"
        OnClientClick="btnOnClientClick()"  />
</div>
</form>

If the issue persists - please paste the full code of your page here.

Greetings,
Kalina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
Ravi Tejas
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Share this question
or