Subsequent callback not fired.

5 posts, 0 answers
  1. Dave
    Dave avatar
    38 posts
    Member since:
    Jul 2007

    Posted 09 Dec 2009 Link to this post

    i have a textbox and a button wrapped in an AjaxPanel. For the textbox, autopostback=true and i am handling the Textchanged event on the server. My problem is that when i start typing in the textbox and then click the button to submit the form, it performs the callback for the textchanged event but the click event for the button is not fired. So the user ends up having to click the button twice to submit the form (if there are going from typing the texbox to clicking the button). Is there a way around this problem? I realize this is probably a bigger problem than just with Telerik Ajax callbacks (like Microsoft and asp.net and postback and events, etc). Is there a workaround?
  2. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 10 Dec 2009 Link to this post

    Hi, David, 

     Just try setting Autopostback=false for the textbox.

    Regards,
    Tsvetoslav
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dave
    Dave avatar
    38 posts
    Member since:
    Jul 2007

    Posted 10 Dec 2009 Link to this post

    I would but i need things to happen when they leave the textbox. I just painted a very simplistic picture for an example. In our project, we have multiple textboxes and buttons and i need to perform a callback whenever the user changes the textbox. So with the situation presented in my first post, with autopostback=true set on the textbox, is there a work around to fire the button click event as well as the textchanged event when i click the button?
  5. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 11 Dec 2009 Link to this post

    Hi,

    Attached is one possible approach to the issue. Another solution is to use our RadAjaxManager control's ajaxRequest method:


    Greetings,
    Tsvetoslav
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 11 Dec 2009 Link to this post

    Hi,

    Attached is one possible approach to the issue. Another solution is to use our RadAjaxManager control's ajaxRequest method:

    http://www.telerik.com/help/aspnet-ajax/ajxajaxmanager.html

    Greetings,
    Tsvetoslav
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017