Postback on each key press

2 posts, 0 answers
  1. Duncan
    Duncan avatar
    93 posts
    Member since:
    Jul 2012

    Posted 22 Feb 2012 Link to this post

    I have a combo box that allows custom text. Is there a way for the combo box to perform a postback each time the text in the combo box is updated, added to or removed from? It seems as though current i have to click away from the combo box or hit enter for a postback to occur.

    Also, if the above is possible, is there a way to make it NOT postback if there are items available in the list?

  2. Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 27 Feb 2012 Link to this post

    Hello Duncan,

    The desired functionality is not supported from the RadComboBox. A post-back is performed only when the control looses focus. In case you want to prevent a post-back to appear if there are items in the control you should subscribe to the client-side OnClientTextChange event and cancel it as shown below:
    function OnClientTextChange(sender, eventArgs) {
        if (sender.get_items().get_count() > 0) {

    Dimitar Terziev
    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. DevCraft R3 2016 release webinar banner
Back to Top