Multi item selection + SHIFT

Multi item selection + SHIFT

murillomaxi@yahoo.com.armurillomaxi@yahoo.com.ar Posts: 5Questions: 2Answers: 0

I am using muti item selection like in https://datatables.net/extensions/select/examples/initialisation/multi.html. Is there any posibility to use the SHIFT key to select adyacente groups of rows?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,298Questions: 26Answers: 4,769

    Try using the os option for the select.style. See this example.

    Kevin

  • murillomaxi@yahoo.com.armurillomaxi@yahoo.com.ar Posts: 5Questions: 2Answers: 0
    edited March 2021

    Thank you Kevin for your reply. I need to select multiple rows just by clicking on them and also to use the SHIFT to select group of rows.

  • schwaluckschwaluck Posts: 103Questions: 27Answers: 1

    Hi murillo,

    select: multi
    

    <- This allows you to select multiple rows by just clicking on them.

    select: true
    

    <- This allows you to select multiple rows with shift and ctrl.

    I hope this helps you :)

    Best regards
    schwaluck

  • kthorngrenkthorngren Posts: 20,298Questions: 26Answers: 4,769
    Answer ✓

    Take a look at the select.style docs for all the options. Maybe mutli+shift will do what you want.

    Kevin

  • murillomaxi@yahoo.com.armurillomaxi@yahoo.com.ar Posts: 5Questions: 2Answers: 0

    Thank you kthorngren!! I read that page and i dont know why I didnt see that option!

This discussion has been closed.