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

[Solved] Cannot find the definition for 'AddHandler'

2 Answers 134 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
NickZ
Top achievements
Rank 1
NickZ asked on 20 Apr 2009, 09:39 PM
Hello,  I followed the example to implement 'AddRemoveDisable' to my treeview.  I got an compile error which said

'Telerik.Windows.Controls.RadTreeView' does not contain a definition for 'AddHandler' and no extension method 'AddHandler' accepting a first argument of type 'Telerik.Windows.Controls.RadTreeView' could be found (are you missing a using directive or an assembly reference?) ...

I just copied the codes from the example. The only difference is that I put this RadTreeview inside a RadPane which is dockable.  Is Pane causing the problem?  I compared references with what are in the example and nothing is missing.  Thanks for help.

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Apr 2009, 05:55 AM
Hello NickZ,

Generally AddHandler is extension method and you need to add using Telerik.Windows.

All the best,
Vlad
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
NickZ
Top achievements
Rank 1
answered on 22 Apr 2009, 03:38 PM
Thanks, Vlad.
Tags
TreeView
Asked by
NickZ
Top achievements
Rank 1
Answers by
Vlad
Telerik team
NickZ
Top achievements
Rank 1
Share this question
or