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

Radcombobox drop down arrow selection freeze after postback

1 Answer 157 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
kevin
Top achievements
Rank 1
kevin asked on 28 Oct 2016, 04:22 PM

Hello,

  I have radcombobox inside radwindow. When postback occurs, Radcombobox itemsrequested event is called and it would insert the items. I would select the item and display the data. It works up to this point. Now, if I click the radcombobox arrow to select again, it freeze. I have to click outside and select again then it works. also, after item is selected, I can't close the radwindow. I need to click outside again, and the radwindow close button works fine. Why is this happening? Could you provide a fix for this problem? thanks. below is sample code.

//client side

 function RadComboBox1_OnClientSelectedIndexChanged(arg) {
                if (arg) {                
                    __doPostBack("<%=RadComboBox1.UniqueID%>", "OnSelectIndexChange");                  
                }
            }

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
<AjaxSettings>
  <telerik:AjaxSetting AjaxControlID="RadComboBox1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlBox" />                                            
                </UpdatedControls>
            </telerik:AjaxSetting>

</AjaxSettings>
</telerik:RadAjaxManagerProxy>

 <telerik:RadWindowManager ID="RadWindowManager1" runat="server"></telerik:RadWindowManager>

    <telerik:RadWindow ID="RadWindow1" runat="server" >   
 <asp:Panel ID="pnlBox" runat="server">
   <telerik:RadComboBox ID="RadComboBox1" runat="server" EmptyMessage="Select" OnClientSelectedIndexChanged="RadComboBox1_OnClientSelectedIndexChanged"
    OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged" OnItemsRequested="RadComboBox1_ItemsRequested" EnableScreenBoundaryDetection="false" AutoPostBack="false" >
 </telerik:RadComboBox>
</asp:Panel>
</telerik:RadWindow>

// server side
        protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            //get items and bind to RadComboBox1;
        }
        protected void RadComboBox1_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {           
            //display data;
        } 

1 Answer, 1 is accepted

Sort by
0
kevin
Top achievements
Rank 1
answered on 28 Oct 2016, 08:29 PM
I was able to fix the issue. needed to set enableloadondemand="true". thanks.
Tags
ComboBox
Asked by
kevin
Top achievements
Rank 1
Answers by
kevin
Top achievements
Rank 1
Share this question
or