RowReorder and select

RowReorder and select

ECEGROUPEECEGROUPE Posts: 77Questions: 28Answers: 1
edited March 27 in General

Hi,

is it possible to use row reorder with full row selection and select if i only click (and not hold the click) on the row;

To summarize :
hold click = drag and drop (like in this exemple : https://datatables.net/extensions/rowreorder/examples/initialisation/selector.html)
Click = select the row (like in this exemple : https://datatables.net/extensions/select/examples/initialisation/simple.html)

but both fonctionnality together ?

Thx for your time / answer :)

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    Answer ✓

    Not really I'm afraid. RowReorder captures the mousedown event, and doesn't allow the click to propagate. You'd really need to have a column as the drag handler and then the other cells as the row selection.

    Allan

  • ECEGROUPEECEGROUPE Posts: 77Questions: 28Answers: 1

    Thank for the answer allan

    is it possible that when i drag a row (hold click), i also select it ?

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    That will happen if the selector for RowReorder and Select are both listening on the same element. Generally I would think, that wouldn't be desirable, and you would want to use rowReorder.selector and select.selector to make sure they don't clash.

    Allan

Sign In or Register to comment.