Server Side event OnClose?

2 posts, 0 answers
  1. Steven
    Steven avatar
    29 posts
    Member since:
    Jan 2013

    Posted 22 Jan 2013 Link to this post

    I have a RadComboBox with CheckBoxes set true.  How do I trigger a server side event when the ComboBox closes?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Jan 2013 Link to this post

    Hi Steven,

    You can add a HiddenField to track the changes in the RadComboBox and raise a button click based on the hidden field value. Here is the sample code.

    <style type="text/css">
            display: none;

    <telerik:RadComboBox ID="RadComboBox1" runat="server" CheckBoxes="true" OnClientDropDownClosed="OnClientDropDownClosed" OnClientItemChecked= "OnClientItemChecked" >
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" CssClass="HiddenButton" />
    <asp:HiddenField ID="HiddenField1" runat="server" />

    <script type="text/javascript">
        function OnClientDropDownClosed(sender, args) {
            if (document.getElementById("HiddenField1").value == 1) {
                document.getElementById("HiddenField1").value = 0;
        function OnClientItemChecked(sender, args) {
            document.getElementById("HiddenField1").value = 1;

    Hope this helps.

Back to Top