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

Post Back when closing combobox

1 Answer 100 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Michael Doxzen
Top achievements
Rank 1
Michael Doxzen asked on 02 Apr 2014, 08:17 PM
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.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 Apr 2014, 04:49 AM
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.

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

Please provide a sample code to replicate the issue for further help.
Thanks,
Princy.
Tags
ComboBox
Asked by
Michael Doxzen
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or