How to identify the cancel button click in RadProgressArea control

Thread is closed for posting
7 posts, 0 answers
  1. Divya
    Divya avatar
    13 posts
    Member since:
    Oct 2010

    Posted 04 Jan 2011 Link to this post

    Hi,

    I need a way to find out whether i have clicked the Cancel button inside the RadProgressArea control. I need to invoke a custom functionality in the
    OnClientProgressUpdating() event whenever cancel button is clicked.  I would like to know how this can be achieved. Code Snippets are given.

    <telerik:RadProgressArea ID="RadProgressArea1" runat="server" DisplayCancelButton="true" ToolTip="workign" OnClientProgressUpdating="clientProgressUpdating" />                               

     function clientProgressUpdating( progressArea, eventArgs)
      {
                 // Identify if cancel button is clicked.
                {
                // Perform my own custom functionality
                 }
       }

    Thanks,
    Divya
  2. David
    David avatar
    159 posts
    Member since:
    Mar 2014

    Posted 21 Apr Link to this post

    Same question.

    Also, is there server side event after clicking "cancel" button?

     

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. David
    David avatar
    159 posts
    Member since:
    Mar 2014

    Posted 25 Apr Link to this post

    Any suggestions?
  5. Ivan Danchev
    Admin
    Ivan Danchev avatar
    829 posts

    Posted 26 Apr Link to this post

    Hello David,

    It is not possible to check whether the Cancel button is clicked, because the OnClientProgressBarUpdating event will not fire after clicking it, unless the progress monitoring starts anew.

    A server event for the Cancel button click is not available.

    Regards,
    Ivan Danchev
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  6. David
    David avatar
    159 posts
    Member since:
    Mar 2014

    Posted 26 Apr in reply to Ivan Danchev Link to this post

    It is a little surprising

    Thank you

  7. Ivan Danchev
    Admin
    Ivan Danchev avatar
    829 posts

    Posted 28 Apr Link to this post

    Hello David,

    The following approach using jQuery could be a possible workaround:
    function clientProgressUpdating(sender, args) {
        $(".ruCancel").click(function () {
            //custom logic
        });
    }

    Your logic has to be placed in the function inside the click method, because as I mentioned clicking on the cancel button will stop the progress updating and any additional logic inside the clientProgressUpdating handler will not be executed.

    Regards,
    Ivan Danchev
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  8. David
    David avatar
    159 posts
    Member since:
    Mar 2014

    Posted 28 Apr in reply to Ivan Danchev Link to this post

    That makes perfect sense!

    Thank you

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017