Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Treeview
Hi friends,
 
Am new to ASP.NET TreeView Control in Web Application, I want to select multiple node by holding ctrl key or alt key using JavaScript. Is there any way means please suggest me with example.
 
Thanks
Jones.
Posted 3-Feb-13 20:46pm
Jhones617

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

None of the TreeView controls I ever saw supported multiple selection. I don't think it would make a whole lot of sense, but if you need it, you need to develop your own control.
 
—SA
  Permalink  
Comments
Sergey Alexandrovich Kryukov at 4-Feb-13 3:06am
   
[OP commented:]
 
Thanks for your reply, Just I wanna confirm one thing with you. In Windows application there is way to select multiple node in treeview at a time, like that in web application Selecting multiple node in TreeView without using checkbox is not possible?
Sergey Alexandrovich Kryukov at 4-Feb-13 3:11am
   
Please don't post your questions as "solution". Comment on any existing post, reply to existing comments or use "Improve question".
 
The problem is not related to checkbox. Checking is not selecting a node; a check box can be focused, but this is not a selection. Tree view is not a native HTML element, it is composed of other elements, so you can make something similar. I would not advise that, as it may confuse the user. As tree view of windows application allows only one selected note, same behavior is reproduced everywhere...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 195
1 ProgramFOX 130
2 Maciej Los 105
3 Sergey Alexandrovich Kryukov 85
4 Afzaal Ahmad Zeeshan 82
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 4 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100