Deferred object in remove

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    22 posts
    Member since:
    Feb 2014

    Posted 15 Mar Link to this post


    I've run into a bit of a snag within the onRemove javascript method.  We have a custom confirm dialog in our application and I'd like to trigger that when removing files from the upload, there does not seem to be any support in the remove method for deferred objects.  I'm just not sure how I can proceed.  Should I try to override the click function on the remove button so it triggers a different method that then triggers the remove event of the actual upload control?  Is there a way to bypass the javascript onRemove, but still process the rest of the remove logic?  Is it possible to have the remove workflow delay until my deferred dialog box has completed?




  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2127 posts

    Posted 16 Mar Link to this post

    Hello Kevin,

    You are correct that providing a deferred object is not supported at the moment in the remove action. A possible approach would be to use a flag variable and prevent the remove event depending on it. Here is a small example of this.

    Dimiter Madjarov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET AJAX banner
Back to Top