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

Get selected treeview control id using javascript

1 Answer 85 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 29 Jul 2008, 11:35 AM
Hi all,

i have a placeholder control which has many comboboxes with the treeview control, i set the OnClientNodeClicking for all treeview controls, if i click a node how can i select the right treeview using javascript ?

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 29 Jul 2008, 03:20 PM
Hi Mark Galbraith,

I have already replied to your support ticket:

One of the possible ways is to have a global javascript variable:

var currentCombo; 

which you can initialize in OnClientDropDownOpening event of every combobox:

function OnClientDropDownOpeningHandler(sender, eventArgs) 
  currentCombo = sender; 

So, in the OnClientNodeClickingHandler handler you can access the global variable currentCombo.


Best wishes,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Alex
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or