tags:

views:

112

answers:

3

I am trying to create a custom (CustTreeView) control by inheriting from a Telerik control (RadTreeView) by doing the following:

public class CustTreeView : RadTreeView  

but not all methods appear to be inherited. For example, I can do:

  RadTreeView r = new RadTreeView();  
  r.LoadContentFile("Sample.xml");

but not:

 CustTreeView r = new CustTreeView ();
 r.LoadContentFile("Sample.xml");

so LoadContentFile doesn't appear to be in CustTreeView! Any explanation?

Here is the RadTreeView LoadContentFile method signature:

public void LoadContentFile(string path)
+2  A: 

According to the docs, that method is public. What error are you getting? Perhaps you're just missing a reference and Intellisense can't resolve the method for you?

HTH,
Kent

Kent Boogaart
+1  A: 

The method is public so it must remain available in the sub-class. Try re-building your solution for intellisense to update.

this. __curious_geek
A: 

Sometimes it is intellisense refreshing issue. You can try to manually type it and build, it will compile and the intellisence will be back.

Jerry Liu