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

AG_E_UNKNOWN_ERROR

6 Answers 133 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
reema
Top achievements
Rank 1
reema asked on 06 Jan 2009, 10:48 AM
hi,

actually I'm tring to populate treeview from WCF , but I get  AG_E_UNKNOWN_ERROR  in xaml page line 11 

 

 

      <UserControl.Resources> 

 

11: <local:HierarchicalDataSource x:Key="Source" /> 
      <core:HierarchicalDataTemplate x:Key="NodeTemplate" ItemsSource="{Binding Children}">

 

     

<core:HierarchicalDataTemplate.HeaderTemplate>

 

 

      

<DataTemplate>

 

 

      

<TextBlock Text="{Binding NodeText}" TextWrapping="Wrap" Width="400"/>

 

 

 

 

 

 

      </DataTemplate>

 

 

     

</core:HierarchicalDataTemplate.HeaderTemplate>

 

 

      

</core:HierarchicalDataTemplate>

 

 

     

</UserControl.Resources>
 

 

 

what is the problem with my code?

6 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 06 Jan 2009, 04:56 PM
Hi reema,

what is local:HierarchicalDataSource?

Are you sure it is defined and it exists?

Sincerely yours,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
reema
Top achievements
Rank 1
answered on 07 Jan 2009, 07:33 AM
0
Accepted
Tihomir Petkov
Telerik team
answered on 07 Jan 2009, 02:36 PM
Hi reema,

The blog post you are refering to happens to be a bit outdated and we will update it ASAP. I am sending you a working example which correctly demonstrates what's described in the article. Let me know if this solves your problem.

Best wishes,
Tihomir Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
reema
Top achievements
Rank 1
answered on 11 Jan 2009, 08:38 AM
yes thanx a lot it is okay now.
 
0
Mark
Top achievements
Rank 1
answered on 19 Apr 2011, 03:45 PM
Another example where information is would be more beneficial than a download.  This practice of "example only" is not the best choice for those seeking information.
0
Petar Mladenov
Telerik team
answered on 19 Apr 2011, 03:52 PM
Hi Mark,

We appreciate your feedback and will try to be more detailed in our answers. Thank you for your cooperation.

All the best,
Petar Mladenov
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
Tags
TreeView
Asked by
reema
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
reema
Top achievements
Rank 1
Tihomir Petkov
Telerik team
Mark
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or