How can I deactivate multi-row selection?
How can I deactivate multi-row selection?
jquijado
Posts: 24Questions: 6Answers: 0
I have a table with editor and I want that an only row can be selected for editing or row, so the CTRL or SHIFT keys don't allow to select more than one only row.
Is this possible?
Thanks a lot everyone.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Use
select.style
to control how the click interaction to select rows works.Allan
It works ok, but just if you use the select.style option AFTER select: true. Unless it doesn´t work and that is the reason why it didn't work for me. I'm going to write this in the page, since I think it's important to be careful about this.
Thanks a lot, Allan.
No it wouldn't. You can't have:
While it is valid Javascript,
select
can't be two different values at once! That would be like using:and expecting
i
to be both 0 and 1.If you specify the
select
parameter as an object then it is assumed to be enabled.Allan