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

    Hello,

    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).

    Example:

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

    Please help.

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 22 Apr Link to this post

    Hi,

    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.

    Regards,
    Maria Ilieva
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top