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

AccessKey - Handle [CONTROL] + [CLICK] Event

2 Answers 29 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kurt Boeckman
Top achievements
Rank 1
Kurt Boeckman asked on 17 Jun 2009, 07:12 PM
I have a RadTreeView control that allows users to make multiple selections.  I'd like to handle the [CONTROL] + [CLICK] event either server or client side to enable other controls when multiple items are selected in the TreeView.  Is this possible?

2 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 22 Jun 2009, 11:49 AM
Hi Kurt Boeckman,

You can subscribe to the OnClientNodeClicked event and check the number of the currently selected nodes:

function onClientNodeClicked(sender, e) 
   if (sender.get_selectedNodes().length > 1) 
   { 
      alert("More than one node selected"); 
   } 

I hope this helps.

Kind regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Kurt Boeckman
Top achievements
Rank 1
answered on 23 Jun 2009, 02:59 PM
That worked.  Thank you for the quick response.
Tags
TreeView
Asked by
Kurt Boeckman
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Kurt Boeckman
Top achievements
Rank 1
Share this question
or