Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > TreeView > Multiple select using shift key

Not answered Multiple select using shift key

Feed from this thread
  • Kapil avatar

    Posted on Sep 2, 2009 (permalink)

    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.

    Reply

  • Atanas Korchev Atanas Korchev admin's avatar

    Posted on Sep 3, 2009 (permalink)

    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.

    Reply

  • Kapil avatar

    Posted on Sep 3, 2009 (permalink)

    Thanks. Looking forward for the new feature.

    Reply

  • Eric Swanson avatar

    Posted on Feb 10, 2010 (permalink)

    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?

    Reply

  • Veselin Vasilev Veselin Vasilev admin's avatar

    Posted on Feb 15, 2010 (permalink)

    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.

    Reply

  • Michael Diaz avatar

    Posted on Jun 24, 2010 (permalink)

    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> 

    Reply

  • Nikolay Tsenkov Nikolay Tsenkov admin's avatar

    Posted on Jun 29, 2010 (permalink)

    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

    Reply

  • Mark Patton avatar

    Posted on Oct 5, 2011 (permalink)

    Bump - Was this ever implemented?

    Reply

  • Mark Patton avatar

    Posted on Oct 7, 2011 (permalink)

    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?

    Reply

  • Nikolay Tsenkov Nikolay Tsenkov admin's avatar

    Posted on Oct 10, 2011 (permalink)

    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

    Reply

  • Andrei avatar

    Posted on Dec 14, 2011 (permalink)

    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.

    Reply

  • Plamen Zdravkov Plamen Zdravkov admin's avatar

    Posted on Dec 16, 2011 (permalink)

    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

    Reply

  • sridhar avatar

    Posted on Jan 30, 2012 (permalink)

    Hi,

    Does the telerik support Multiple select on shift click?.If yes please let me know hoe can I use it.

    Reply

  • Bozhidar Bozhidar admin's avatar

    Posted on Jan 31, 2012 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > TreeView > Multiple select using shift key
Related resources for "Multiple select using shift key"

ASP.NET TreeView Features  |   Documentation   |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]