How to set selection mode single in dijit.Tree? What I mean by selection mode single is user should not be able to select multiple nodes by making use of shift key or ctrl key + mouse click on node.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The selection is handled by
dijit/Tree::dndController, which defaults todijit/tree/_dndSelector. There is a propertysingularin_dndSelectorand its documentation states:Anyway, it seems to work:
Check it out at jsFiddle: http://jsfiddle.net/phusick/UxWUs/