jQWidgets Forums

jQuery UI Widgets Forums Grid Detect final shift click selection event

This topic contains 2 replies, has 2 voices, and was last updated by  ChaseRLewis73003 8 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Detect final shift click selection event #91791

    ChaseRLewis73003
    Participant

    Is there a way when a shift click occurs to select many elements to detect the event that is the last ‘selection’. I’d like to do an action only once the selection is complete if possible since it involves iterating over the grid.

    Currently when doing a shift click I get many events (which makes sense). Any help on this would be very appreciated.

    Detect final shift click selection event #91796

    admin
    Keymaster

    Hi ChaseRLewis73003,

    You can detect when shift is clicked probably: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/handlekeyboard.htm?black. The handlekeyboardnavigation callback function can be helpful for that purpose.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Detect final shift click selection event #91797

    ChaseRLewis73003
    Participant

    Hey Peter,

    Knowing if the shift key is down doesn’t tell me which is the last ‘select’ event. The total number of indexes returned by the grid changes for each event so the first ‘shift’ event does not have all the indices I need returned with the event. I need to get the list of all indices after the selection is complete which means I need to detect which is the last select event with the shift operation because of how the grid presents the event data.

    Only thing I can think of is a time based method with a timeout, but that seems pretty hacky / suboptimal. Any option supported by the grid would be preferred should it exist.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.