Radcombobox drop down arrow selection freeze after postback

2 posts, 0 answers
  1. kevin
    kevin avatar
    7 posts
    Member since:
    Aug 2016

    Posted 28 Oct Link to this post

    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;
            } 

  2. kevin
    kevin avatar
    7 posts
    Member since:
    Aug 2016

    Posted 28 Oct in reply to kevin Link to this post

    I was able to fix the issue. needed to set enableloadondemand="true". thanks.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top