Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom 713 posts 954 karma points
    Jan 30, 2012 @ 07:24
    Tom
    0

    Select All Form Entries and delete for cleanup??

    Hi Guys,

    we have a client who'd like to be able to select all the checkboxes at once on the form entries screen and delete all entries for that form.. is that possible for us to modify the contour implementation to make that work.. or is that functionality ever going to be added in as it would be a nice usability piece..

     

    Thanks,

    Tom

  • Comment author was deleted

    Jan 31, 2012 @ 13:21

    Hey Tom,

    We'll look into this request, so pretty sure it will make the next maintenance release

  • Tom 713 posts 954 karma points
    Feb 01, 2012 @ 01:42
    Tom
    0

    Hi Tim!

    Thanks so much! if you wouldn't mind keeping me posted when it's developed I'll let the client know! very much appreciated!

    Thanks,

    Tom

  • manwood 87 posts 109 karma points
    Dec 30, 2012 @ 12:55
    manwood
    0

    Did this ever happen? 

  • Tom 713 posts 954 karma points
    Jan 06, 2013 @ 23:09
    Tom
    0

    Not that I know of.. I'd love to know if it will though!

  • David Emlay 9 posts 29 karma points
    Jan 07, 2013 @ 21:06
    David Emlay
    0

    Maybe too much for your client, but I have in the past used some Javascript in the console window of the browser to select all the checkboxes at once. Problem is that if you select more than 10 or so records at a time, the delete takes forever to complete. (This may be the result of having more than 20,000 records in my form)

  • Tom Steer 161 posts 596 karma points
    Mar 27, 2013 @ 12:04
    Tom Steer
    0

    Hi Tim,

    Is there any update on the "Select All" functionlity, I have a client requesting this.

    Many Thanks,

    Tom

  • patrick 41 posts 93 karma points
    Dec 09, 2013 @ 15:25
    patrick
    1

    Just change the following:

    • find the file "editFormEntries" under Umbraco\Plugins
    • Find the following text:
      <th style="width: 25px !Important"></th>
    • Replace it with:
      <th style="width: 25px !Important"><a href="javascript:void(0);"  onclick="$('input[type=checkbox]').prop('checked', true);">All</a></th>

     

  • Dano 3 posts 52 karma points
    Aug 16, 2015 @ 13:18
    Dano
    0

    In my environment, Patrick's solution selects each of the entries but doesn't fire the onclick event for each checkbox, and thus doesn't trigger the bulk action dropdown nor truly select each one.

    I've extended Patrick's solution, with the full instructions here as follows:

    • find the file "editFormEntries" under Umbraco\Plugins\umbracoContour
    • Find the following text:

    <th style="width: 25px !Important"></th>

    • Replace it with:

    <th style="width: 25px !Important"><a href="javascript:void(0);" onclick="$('input[type=checkbox]').prop('checked', true).triggerHandlers('click');">All</a></th>

    • This will cause the click event to fire on all elements matching the expression. Note that this relies on a custom triggerHandlers() function (as the jQuery triggerHandler() function only acts on the first element), which you can add to the header (thanks to Bennadel), as follows:

    <script type="text/javascript"> $.fn.triggerHandlers = function( type, data ){ var handlersOnly = true; this.each( function(){ jQuery.event.trigger( type, data, this, handlersOnly ); } ); return( this ); }; </script>

    I have tested this up to 100 records and it works just fine.

  • Jacob Polden 67 posts 177 karma points
    Oct 07, 2014 @ 16:40
    Jacob Polden
    0

    Just implemented patrick's solution.

    Why is this not in an official release!!?!

  • Comment author was deleted

    Oct 10, 2014 @ 12:37

    You'll be glad to hear that this will be part of Contour v4

  • Jacob Polden 67 posts 177 karma points
    Oct 10, 2014 @ 15:28
    Jacob Polden
    0

    It does indeed :)

Please Sign in or register to post replies

Write your reply to:

Draft