Post Back when closing combobox

2 posts, 0 answers
  1. Michael Doxzen
    Michael Doxzen avatar
    2 posts
    Member since:
    Aug 2008

    Posted 02 Apr 2014 Link to this post

    I have a radcombobox CheckBoxes="True" and AutoPostBack="True" because I need server side code to execute after the user makes her selections. However, the postback is occurring every time a user checks a box and then it closes the combobox. The user wants the combobox to stay open and I don't want the postback to occur until the user is finished and clicks off of the combobox. I am experimenting with using the combobox's OnClientBlur event and then doing a postback like this:                 __doPostBack(objName, "ItemChecked"); But I'm struggling to get it to work and not confident that's the right path.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 02 Apr 2014 in reply to Michael Doxzen Link to this post

    Hi Michael Doxzen,

    The default behavior of RadComboBox is that postback will only  happen after clicking outside the RadCombobox. Please have a look into the sample code snippet which works as expected for me.

    <telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="true" CheckBoxes="true">
            <telerik:RadComboBoxItem Text="Item1" />
            <telerik:RadComboBoxItem Text="Item2" />
            <telerik:RadComboBoxItem Text="Item3" />

    Please provide a sample code to replicate the issue for further help.
Back to Top