This is a migrated thread and some comments may be shown as answers.

Multiple select using shift key

13 Answers 144 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kapil
Top achievements
Rank 1
Kapil asked on 02 Sep 2009, 06:23 PM
Multiple selection works by using ctrl key, but we have to click 20-30 times if we have to select many items. If the nodes are sorted, is there a way to select them shift style, so that all leaf nodes are selected between 2 clicks.

13 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 03 Sep 2009, 06:53 AM
Hello Kapil,

Currently RadTreeView does not support this type of selection. I have logged it as a feature request and will be considered and prioritized. Your telerik points have been updated.

Regards,
Albert,
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Kapil
Top achievements
Rank 1
answered on 03 Sep 2009, 12:00 PM
Thanks. Looking forward for the new feature.
0
Eric Swanson
Top achievements
Rank 1
answered on 10 Feb 2010, 07:27 PM
I am looking for the same functionality.  I have the source code but could not find where you are performing the method for the CTRL key.  Is it possible for me to add the functionality myself similiar to the CTRL key?

0
Veselin Vasilev
Telerik team
answered on 15 Feb 2010, 01:51 PM
Hi Eric Swanson,

The code that you need to look at is at RadTreeView.js and the method is _onKeyDown

You can add this as a feature request in our public issue tracking system. You can go and vote for this feature to be implemented in the future versions.

Sincerely yours,
Veskoni
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Michael Diaz
Top achievements
Rank 1
answered on 24 Jun 2010, 09:39 PM
I was just wondering if this has been fixed yet. I have a RadTreeView on a page which can have anywhere from 10-1000 items. The client would like to be able to select the first item hold the Shift key and select any number of items in the TreeView. Right now the Shift key function much the same as a Ctrl Key in the treeview.

        <telerik:RadTreeView ID="RadTreeView1" runat="server" MultipleSelect="true">  
            <Nodes> 
                <telerik:RadTreeNode runat="server" Text="RootNode">  
                    <Nodes> 
                        <telerik:RadTreeNode runat="server" Text="SubAssy1">  
                            <Nodes> 
                                <telerik:RadTreeNode runat="server" Text="Part1">  
                                </telerik:RadTreeNode> 
                                <telerik:RadTreeNode runat="server" Text="Part2">  
                                </telerik:RadTreeNode> 
                                <telerik:RadTreeNode runat="server" Text="Part3">  
                                </telerik:RadTreeNode> 
                            </Nodes> 
                        </telerik:RadTreeNode> 
                    </Nodes> 
                </telerik:RadTreeNode> 
            </Nodes> 
        </telerik:RadTreeView> 

0
Nikolay Tsenkov
Telerik team
answered on 29 Jun 2010, 04:45 PM
Hello Michael Diaz,

No, it's not supported.

But we definitely will consider this for future development.


Regards,
Nikolay Tsenkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mark Patton
Top achievements
Rank 1
answered on 05 Oct 2011, 10:37 PM
Bump - Was this ever implemented?
0
Mark Patton
Top achievements
Rank 1
answered on 07 Oct 2011, 06:45 PM
Okay, I see that shift/click multi-select has been implemented.  Works fine until I implement the OnNodeClick event in the RadTreeView.  Then I get the following javascript error at line 5851:  "Microsoft JScript runtime error: Unable to get value of the property '_getHierarchicalIndex': object is null or undefined"

I have a two RadTreeViews and a RadGrid.  When a Node is selected, I call the OnNodeClick event is called to load data into the grid related to the selected node.  Another feature is the user can drag the node from RadTreeView1 to RadTreeView2.  Either a single Node or multiple Nodes.  Using Alt/Click to select multiple nodes works fine.  It appears that the OnNodeClick event is not called   Using Shift/Click to select multiple nodes, however, throws the above javascript.  It appears to me that the OnNodeClick event is being called when it shouldn't be.  When I remove the OnNodeClick event, shif/click works.  I've tried just doing a 'return' in the OnNodeClick method error occurs, so it's not somethin in the code that loads the Grid. 

Any suggestions on how I can prevent this from happening?
0
Nikolay Tsenkov
Telerik team
answered on 10 Oct 2011, 11:03 AM
Hi Mark,

Could you, please, open a support ticket and send us a sample reproducing the issue along with a step-by-step procedure to guide us in reproducing this at our end?

Regards,
Nikolay Tsenkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Andrei
Top achievements
Rank 1
answered on 14 Dec 2011, 04:27 PM
Hi,
I have an issue with the shift+click selection of the tree. I have a treeview with multiple selection set to true, but when the control is rendered no node is selected by default. Because of that, if I press shift+click I get the following javascript error: "Error: 'null' is null or not an object". How can I prevent this error? I don't need the shit selection so if there is a way to disable it, it would be great.
0
Plamen
Telerik team
answered on 16 Dec 2011, 05:05 PM
Hi Andrei,

Would you please let us know what code should we add to the Accessibility demo in order to observe this shift-click issue?

Please clarify which browser version are you using as well?

You can also refer to this help topic in case your issue is similar.

Regards,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
sridhar
Top achievements
Rank 1
answered on 30 Jan 2012, 10:32 PM
Hi,

Does the telerik support Multiple select on shift click?.If yes please let me know hoe can I use it.
0
Bozhidar
Telerik team
answered on 31 Jan 2012, 03:02 PM
Hello Sridhar,

RadTreeView does support Multiple selection. To enable it, you just have to set the MultipleSelect property of the TreeView to true. With this property enabled, the TreeView supports Shift+Click selection, as well as Ctrl+Click selection out of the box. You can experience this feature in the following demo:
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/draganddropnodes/defaultcs.aspx 
 
Kind regards,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
TreeView
Asked by
Kapil
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Kapil
Top achievements
Rank 1
Eric Swanson
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Michael Diaz
Top achievements
Rank 1
Nikolay Tsenkov
Telerik team
Mark Patton
Top achievements
Rank 1
Andrei
Top achievements
Rank 1
Plamen
Telerik team
sridhar
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or