Postback occuring when calling a button's click event via javascript.

2 posts, 0 answers
  1. Vance Smith
    Vance Smith avatar
    36 posts
    Member since:
    Jun 2012

    Posted 19 Apr Link to this post


    I am calling a telerik radbutton's click event via javascript from within a RadAjaxPanel and it is causing a postback rather than a call back. When I click the button manually all works as expected (a callback occurs).


    document.getElementById('<% = SaveEditorButton.ClientID %>').click();

    Please help.

  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 22 Apr Link to this post


    Instead of calling manual click() you can simply perform manual ajaRequest() on client button click event to perform server action. Give this a try and see if it covers your requirements.

    Maria Ilieva
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top