Text is not shown in my TreeView

3 posts, 1 answers
  1. Kakone
    Kakone avatar
    65 posts
    Member since:
    Jan 2010

    Posted 01 Apr 2011 Link to this post

    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. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 04 Apr 2011 Link to this post

    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
  3. DevCraft banner
  4. Kakone
    Kakone avatar
    65 posts
    Member since:
    Jan 2010

    Posted 04 Apr 2011 Link to this post

    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.
Back to Top