Binding to Image

2 posts, 0 answers
  1. Joel Palmer
    Joel Palmer avatar
    164 posts
    Member since:
    May 2009

    Posted 07 May 2015 Link to this post

    Following something similar to your GridViewComboBoxColumn example I was able to get a column in the RadTreeListView working.  However, my cell template needs an Image to show up.  This data template doesn't work because the image is actually on the ItemType which is displayed successfully in the ComboBox... I don't know how to get that ItemType's Image to show up on the DataTemplate or even on a RadPropertyGrid.Item to display its properties when I select the Node:

    Once again, thanks for your help,


                    Source="{Binding Image, Mode=TwoWay}"/>
                    Text="{Binding Name, Mode=TwoWay}"



        IsReadOnly="{Binding Context.IsReadOnly}"
        ItemsSource="{Binding Path=Context.Hierarchy, Mode=TwoWay}"
        SelectedItem="{Binding Context.SelectedItem, Mode=TwoWay}"
                ItemsSource="{Binding Children}"/>
                DataMemberBinding="{Binding Name, Mode=TwoWay}"
                CellTemplate="{StaticResource FirstColumnCellTemplate}"
                Header="Item Type"
                DataMemberBinding="{Binding ItemTypeID, Mode=TwoWay}"
                ItemsSource="{Binding TypeModel.Items, Mode=TwoWay}"
                DataMemberBinding="{Binding IsActive, Mode=TwoWay}"

  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 12 May 2015 Link to this post

    Hello Joel,

    As to GridViewComboBoxColumn, you can check the Templating GridViewComboBoxColumn example. Basically, you can try specifying ItemTemplate, which also applies to the default editor of that column - RadComboBox.

    As I understand your question is to the other column - GridViewDataColumn. Please note the its DataContext is the bound data item (corresponding to each GridViewRow), therefore you should configure the Binding based on that.


    See What's Next in App Development. Register for TelerikNEXT.

  3. DevCraft banner
Back to Top