RowReorder and select
RowReorder and select
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
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
Thank for the answer allan
is it possible that when i drag a row (hold click), i also select it ?
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
andselect.selector
to make sure they don't clash.Allan