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

Text is not shown in my TreeView

2 Answers 186 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kakone
Top achievements
Rank 1
Kakone asked on 01 Apr 2011, 02:24 PM
Hi,

With the last version of the RadControls, I can't see any text in my treeview. This is my xaml code (the treeview is in an UserControl into a RadWindow) :
<telerikNavigation:RadTreeView ItemsSource="{Binding ThirdParties}" IsOptionElementsEnabled="{Binding MultiSelect}">
  <telerikNavigation:RadTreeView.ItemTemplate>
      <telerik:HierarchicalDataTemplate ItemsSource="{Binding SortedChildren}">
          <StackPanel Orientation="Horizontal">
              <Image Source="{Binding Image, Converter={StaticResource BitmapImageConverter}}" VerticalAlignment="Center" Margin="0,0,2,0" />
              <TextBlock Text="Where is my text" VerticalAlignment="Center" />
          </StackPanel>
      </telerik:HierarchicalDataTemplate>
  </telerikNavigation:RadTreeView.ItemTemplate>
</telerikNavigation:RadTreeView>

The images are well drawn but I can't see the text (screenshot in attachment). Before the 2011.1 version, it worked well.

Cordially,
Kakone.

2 Answers, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 04 Apr 2011, 02:16 PM
Hello Kakone,

Unfortunately, we are unable to reproduce this issue in out environment. Could you please examine my test project and let me know if I have missed something. You could also send us more of your code so that we could investigate deeper. thank you in advance.

Regards,
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
0
Kakone
Top achievements
Rank 1
answered on 04 Apr 2011, 03:48 PM
Hi,

I found the reason (sorry !). The ItemPrepared event of the RadTreeView was used and the PreparedItem.Foreground property value was set to null (it's an april fool or what ?!?). So, I didn't see my text, it was logical.
Sorry for making you waste your time.

Cordially,
Kakone.
Tags
TreeView
Asked by
Kakone
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Kakone
Top achievements
Rank 1
Share this question
or