Unecessary ComboBox Postback

6 posts, 1 answers
  1. Andy
    Andy avatar
    27 posts
    Member since:
    May 2011

    Posted 15 Jun 2012 Link to this post

    This is somewhat obscure, and perhaps the behavior is by design for some reason, but a RadComboBox with CheckBoxes and AutoPostBack enabled in addition to an EmptyMessage posts back to the server when the dropdown menu is closed and no items are checked or unchecked (i.e. the menu is opened and closed with no additional interaction).  

    <telerik:RadComboBox ID="rcbItems" runat="server" CheckBoxes="true" AutoPostBack="true"
        Width="175" Height="300" EmptyMessage="Select an Item">
    </telerik:RadComboBox>

    Removing either the EmptyMessage or the CheckBoxes will eliminate the postback.  Can anyone explain this behavior?
  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 18 Jun 2012 Link to this post

    Hi Andy,

    This is rather strange. I have tested the described behavior locally, but I was unable to replicate the misbehavior.  Take a look at the following video to see the result of my testing: http://screencast.com/t/gvgbVT9Xfr2w.

    Could you specify the version of RadControls for ASP.NET AJAX that you use in your application? Also, if the problem can be isolated please send us a sample project illustrating the troubled behavior, via support ticket, so we will be able to troubleshoot the issues locally.

    Greetings,
    Ivana
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Andy
    Andy avatar
    27 posts
    Member since:
    May 2011

    Posted 18 Jun 2012 Link to this post

    Hi Ivana,

    I'm using 2012.2.607.35.

    I've narrowed it down a bit more.  This behavior only occurs if there are no items in the combobox.  

    Give it a try and let me know if you still need a sample project.
  4. Answer
    Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 19 Jun 2012 Link to this post

    Hello Andy,

    Thanks for the detailed information. Yes, I was able to replicate the described behavior locally, indeed. I have noticed, however, that this happens only in .NET framework 3.5 and only with the version you have specified: 2012.2.607.35.

    I have tested the same scenario with version 2012.2.619.35 where no post back is made upon drop-down list closing. Attached is the same I have been tested locally as well as the trial version of the above mentioned internal build. I encourage you to take a look at it and test it at your end.

    Let me know how it goes.

    Regards,
    Ivana
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  5. Andy
    Andy avatar
    27 posts
    Member since:
    May 2011

    Posted 19 Jun 2012 Link to this post

    If the issue is fixed in your internal build then I presume that it will be included in the next patch or release. Thanks for checking it out for me.
  6. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 19 Jun 2012 Link to this post

    Hello Andy,

    Yes, your presumptions are correct -- the fix will be included in the next major release of RadControls for ASP.NET AJAX.

    Greetings,
    Ivana
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top